From 3bd208211b1a40598988795a594bb408ae801c0b Mon Sep 17 00:00:00 2001 From: jacobjdavey Date: Sun, 4 Feb 2024 17:32:33 -0600 Subject: [PATCH 01/14] Added passengers field to PassengerData interface --- .nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json | 1 + .nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json | 1 - ...d3ddd913.json => 56a71d98-ad87-44f0-91b9-1b751e1490de.json} | 2 +- .nyc_output/processinfo/index.json | 2 +- build/tests/Trimming.tests.js | 3 ++- src/interfaces/passenger/trimmed-passenger.interface.ts | 1 + src/tests/Trimming.tests.ts | 3 +++ src/util/trimming/passengers.ts | 2 ++ 8 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json delete mode 100644 .nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json rename .nyc_output/processinfo/{8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json => 56a71d98-ad87-44f0-91b9-1b751e1490de.json} (84%) diff --git a/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json b/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json new file mode 100644 index 0000000..47cab86 --- /dev/null +++ b/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json @@ -0,0 +1 @@ +{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":26},"end":{"line":26,"column":69}},"26":{"start":{"line":27,"column":22},"end":{"line":27,"column":61}},"27":{"start":{"line":28,"column":21},"end":{"line":28,"column":59}},"28":{"start":{"line":29,"column":20},"end":{"line":29,"column":48}},"29":{"start":{"line":30,"column":15},"end":{"line":30,"column":44}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":24}},"31":{"start":{"line":32,"column":0},"end":{"line":145,"column":3}},"32":{"start":{"line":33,"column":4},"end":{"line":87,"column":7}},"33":{"start":{"line":34,"column":28},"end":{"line":34,"column":74}},"34":{"start":{"line":35,"column":31},"end":{"line":35,"column":78}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":71}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":106}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":98}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":104}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":108}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":134}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":98}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":102}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":104}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":108}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":92}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":110}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":110}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":126}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":128}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":102}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":114}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":98}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":134}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":106}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":114}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":116}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":102}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":86}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":94}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":108}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":106}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":136}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":88}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":102}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":102}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":108}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":110}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":126}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":102}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":136}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":118}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":118}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":116}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":132}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":140}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":140}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":138}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":116}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":120}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":98}},"84":{"start":{"line":85,"column":8},"end":{"line":85,"column":110}},"85":{"start":{"line":86,"column":8},"end":{"line":86,"column":100}},"86":{"start":{"line":88,"column":4},"end":{"line":114,"column":7}},"87":{"start":{"line":89,"column":24},"end":{"line":89,"column":66}},"88":{"start":{"line":90,"column":27},"end":{"line":90,"column":68}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":63}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":81}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":78}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":80}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":110}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":106}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":100}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":86}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":106}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":102}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":84}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":88}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":94}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":102}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":92}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":108}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":124}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":130}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":120}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":116}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":96}},"110":{"start":{"line":112,"column":8},"end":{"line":112,"column":110}},"111":{"start":{"line":113,"column":8},"end":{"line":113,"column":100}},"112":{"start":{"line":115,"column":4},"end":{"line":144,"column":7}},"113":{"start":{"line":116,"column":30},"end":{"line":116,"column":72}},"114":{"start":{"line":117,"column":33},"end":{"line":117,"column":79}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":75}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":93}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":86}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":104}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":102}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":110}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":90}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":90}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":92}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":88}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":116}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":112}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":96}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":116}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":134}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":114}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":96}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":120}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":116}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":138}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":106}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":102}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":160}},"139":{"start":{"line":142,"column":8},"end":{"line":142,"column":84}},"140":{"start":{"line":143,"column":8},"end":{"line":143,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":27},"end":{"line":145,"column":1}},"line":32},"7":{"name":"(anonymous_7)","decl":{"start":{"line":33,"column":39},"end":{"line":33,"column":40}},"loc":{"start":{"line":33,"column":45},"end":{"line":87,"column":5}},"line":33},"8":{"name":"(anonymous_8)","decl":{"start":{"line":88,"column":42},"end":{"line":88,"column":43}},"loc":{"start":{"line":88,"column":48},"end":{"line":114,"column":5}},"line":88},"9":{"name":"(anonymous_9)","decl":{"start":{"line":115,"column":41},"end":{"line":115,"column":42}},"loc":{"start":{"line":115,"column":47},"end":{"line":144,"column":5}},"line":115}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":100,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1},"f":{"0":10,"1":100,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAA+D;AAC/D,8DAA6D;AAC7D,4DAA4D;AAC5D,iDAI2B;AAC3B,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,WAAW,GAAsB,IAAA,uCAA2B,GAAE,CAAC;QACrE,MAAM,cAAc,GAAyB,IAAA,6BAAW,EAAC,WAAW,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACnD,IAAA,aAAM,EAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACrE,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,cAAc,CAAC,eAAe,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;QAC9E,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACnD,cAAc,CAAC,gBAAgB,CAAC,CACjC,CAAC;QACF,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACjD,cAAc,CAAC,c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D,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAChD,gBAAgB,CAAC,WAAW,CAAC,CAC9B,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAC7E,gBAAgB,CAAC,wCAAwC,CAAC,CAC3D,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { trimRequest } from '../util/trimming/flight-requests';\nimport { trimFlightLeg } from '../util/trimming/flight-legs';\nimport { trimPassenger } from '../util/trimming/passengers';\nimport {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields['Passenger Names (from All Flight Legs)']).to.equal(\n trimmedPassenger['Passenger Names (from All Flight Legs)']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c6f34d73a4700e1e8312c234cc1d1bb3f2d70e10","contentHash":"2792aeedccb073e0c2f141947dd2646004a6008211a1b8292154d7463b141e57"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":20},"end":{"line":61,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":65},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":27},"end":{"line":59,"column":5}},"6":{"start":{"line":60,"column":4},"end":{"line":60,"column":26}},"7":{"start":{"line":62,"column":0},"end":{"line":62,"column":34}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":20},"end":{"line":4,"column":21}},"loc":{"start":{"line":4,"column":33},"end":{"line":61,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts"],"names":[],"mappings":";;;AAGO,MAAM,WAAW,GAAG,CAAC,OAA0B,EAAwB,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,cAAc,GAAyB;QAC3C,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,SAAS,EAAE,SAAS;QACpB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,SAAS,EAAE,SAAS;QACpB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,CAAC;QAC5D,0BAA0B,EAAE,MAAM,CAAC,0BAA0B,CAAC;QAC9D,aAAa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oB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,CAAC;QACtD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;KACnC,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA5DW,QAAA,WAAW,eA4DtB","sourcesContent":["import type { FlightRequestData } from '../../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bc520d2d596e15fc30a0167ecb05712205c25c6c","contentHash":"d3d50c11d1a91b9757c5569b0f19650ed4428dfa62dff5649d84e84957e4ea2e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":44},"end":{"line":6,"column":50}},"5":{"start":{"line":7,"column":23},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":35},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,OAAsB,EAAoB,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE/C,MAAM,UAAU,GAAqB;QACnC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../../interfaces/legs/trimmed-flight-leg.interface';\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"457d848713bbc65e50d8abc11e532a2268cf72d0","contentHash":"a46a8687ad3590299a872bb6385ba6335cef4490a56b4c66eef79677e0dba119"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":36,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":34,"column":5}},"6":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"7":{"start":{"line":37,"column":0},"end":{"line":37,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":36,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,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rimmedPassenger } from '../../interfaces/passenger/trimmed-passenger.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n 'Passenger Names (from All Flight Legs)': fields['Passenger Names (from All Flight Legs)'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9e019e3a38e61a4a141889aa5575da220146473a","contentHash":"40c6f89679be4ba9e4027026395b9dae86768ed924d7fecb5efb85afab12eba6"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CACzC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACxD,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,uBACE,EAAE,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACvB,WAAW,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,EAC9C,MAAM,kBACJ,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBAC/B,SAAS;gBACT,wBAAwB;gBACxB,sBAAsB;aACvB,CAAC,EACF,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,QAAQ,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,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"46":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"47":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"48":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":56}},"50":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":45},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":39},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":47},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"loc":{"start":{"line":59,"column":31},"end":{"line":62,"column":9}},"line":59},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":39},"end":{"line":64,"column":40}},"loc":{"start":{"line":64,"column":47},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":31},"end":{"line":72,"column":9}},"line":69}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":2,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"f":{"0":10,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;aAClB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2301, () => {\n console.log('Mock server listening on port 2301');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST /bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2e883902345179d9034f50392f72183e3f64a93c","contentHash":"36149bc236f26200721bd5de6145cf08bcf089529b779d7213c7c8e2fcba661f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":22},"end":{"line":7,"column":71}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":61}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":17},"end":{"line":12,"column":51}},"10":{"start":{"line":13,"column":15},"end":{"line":13,"column":47}},"11":{"start":{"line":14,"column":24},"end":{"line":42,"column":1}},"12":{"start":{"line":15,"column":16},"end":{"line":15,"column":40}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":58}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":38}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":35}},"16":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"17":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"18":{"start":{"line":25,"column":4},"end":{"line":25,"column":37}},"19":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"20":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"21":{"start":{"line":28,"column":8},"end":{"line":28,"column":39}},"22":{"start":{"line":31,"column":8},"end":{"line":31,"column":39}},"23":{"start":{"line":34,"column":4},"end":{"line":39,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":35,"column":33}},"25":{"start":{"line":36,"column":8},"end":{"line":38,"column":81}},"26":{"start":{"line":41,"column":4},"end":{"line":41,"column":44}},"27":{"start":{"line":43,"column":0},"end":{"line":43,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":30},"end":{"line":42,"column":1}},"line":14},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":12},"end":{"line":34,"column":13}},"loc":{"start":{"line":34,"column":33},"end":{"line":39,"column":5}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21},"4":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}],"line":27},"5":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":81}},"type":"binary-expr","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":81}}],"line":27}},"s":{"0":1,"1":7,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":3,"13":3,"14":3,"15":3,"16":3,"17":0,"18":3,"19":3,"20":3,"21":0,"22":3,"23":3,"24":0,"25":0,"26":3,"27":1},"f":{"0":7,"1":3,"2":0},"b":{"0":[1,1,1],"1":[0,7],"2":[7,7],"3":[0,3],"4":[0,3],"5":[3,3]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAkD;AAClD,sDAA8B;AAC9B,gDAAwB;AACxB,8DAAqC;AACrC,oDAA4B;AAC5B,oDAA4B;AAE5B,gDAAwB;AAEjB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,+CAA+C;IAC3F,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC7E,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;IAED,6DAA6D;IAC7D,GAAG,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,CAAC,EAAE,GAAQ,EAAE,EAAE,EAAE,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,GAAG;aACA,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,oBAAoB;IACpB,OAAO,cAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAjCW,QAAA,eAAe,mBAiC1B","sourcesContent":["import exampleRouter from '../routes/Test.routes';\nimport express from 'express';\nimport cors from 'cors';\nimport bodyparser from 'body-parser';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nimport http from 'http';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(bodyparser.json({ limit: '5mb' })); //file size limit specification to receive PDFs\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'development') {\n app.use(exampleRouter);\n } else {\n app.use(exampleRouter);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n app.use((err: any, _, res: any, __) => {\n console.error(err.stack);\n res\n .status(403)\n .send({ message: \"You're not authorized to access this endpoint!\" });\n });\n\n // Create the server\n return http.createServer(app);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"47f63148ead59f979b85a1ede425ee11cf17582e","contentHash":"49bd8b66952e0c8a9cd98dd19934c104f0d22071d08c91d82b0b2c597cdbd40e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"3":{"start":{"line":6,"column":29},"end":{"line":6,"column":89}},"4":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"5":{"start":{"line":8,"column":31},"end":{"line":8,"column":93}},"6":{"start":{"line":9,"column":18},"end":{"line":9,"column":53}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":48}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":75}},"9":{"start":{"line":13,"column":0},"end":{"line":13,"column":79}},"10":{"start":{"line":14,"column":0},"end":{"line":14,"column":72}},"11":{"start":{"line":15,"column":0},"end":{"line":15,"column":82}},"12":{"start":{"line":16,"column":0},"end":{"line":16,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{"0":1},"b":{"0":[1,1,1],"1":[0,1],"2":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts"],"names":[],"mappings":";;;;AAAA,gGAA6F;AAC7F,0FAAuF;AACvF,8FAA2F;AAC3F,8FAA2F;AAC3F,sDAA8B;AAE9B,MAAM,aAAa,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEvC,qBAAqB;AACrB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,6CAAqB,CAAC,CAAC;AACnD,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,2CAAoB,CAAC,CAAC;AACxD,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,2CAAoB,CAAC,CAAC;AACjD,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,uCAAkB,CAAC,CAAC;AAE7D,iBAAS,aAAa,CAAC","sourcesContent":["import { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport express from 'express';\n\nconst exampleRouter = express.Router();\n\n/* Test Controller */\nexampleRouter.get('/query', queryParameterExample);\nexampleRouter.get('/path/:value', pathParameterExample);\nexampleRouter.get('/body', bodyParameterExample);\nexampleRouter.get('/retrievePassengers', retrievePassengers);\n\nexport = exampleRouter;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b3d98a2caac7f728ac9ebf8787fc5b08e5c88c4d","contentHash":"6edfa5a4123ea38baa847d6b94cdcc9aaeef5b8cfaae82c34375b95e87c139be"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":19},"end":{"line":16,"column":55}},"17":{"start":{"line":17,"column":17},"end":{"line":17,"column":51}},"18":{"start":{"line":18,"column":0},"end":{"line":18,"column":26}},"19":{"start":{"line":21,"column":27},"end":{"line":65,"column":2}},"20":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":4},"end":{"line":22,"column":46}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":35}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":68}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":73}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":27},"end":{"line":21,"column":28}},"loc":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"line":21},"9":{"name":"(anonymous_9)","decl":{"start":{"line":21,"column":75},"end":{"line":21,"column":76}},"loc":{"start":{"line":21,"column":88},"end":{"line":65,"column":1}},"line":21},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;oBAC9B,CAAC,CAAC,EAAE,CACO,CAAC;gBAChB,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBACF,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACpD,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAC9B,CAAC,CAAC,sCAAsC;4BACzC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAChC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAnDW,QAAA,kBAAkB,sBAmD7B","sourcesContent":["import Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n console.log(process.env.AIRTABLE_API_KEY);\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n console.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n console.log('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n console.log('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fe1ade0a5d53988d69f6cc8be0f95e299471388c","contentHash":"80abbd2773c85413f65141a8ae75298fcc27abd3a898d5e2bb9b9d65b77cb9b8"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":73,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":141}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":72,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":71,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":33},"end":{"line":53,"column":34}},"loc":{"start":{"line":53,"column":39},"end":{"line":73,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":66},"end":{"line":54,"column":67}},"loc":{"start":{"line":54,"column":74},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":61},"end":{"line":64,"column":62}},"loc":{"start":{"line":64,"column":69},"end":{"line":72,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":3,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1},"f":{"0":11,"1":3,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,WAAW,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2303, () => {\n console.log('Mock server listening on port 2303');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"dcededb0f8a75ca7d6a68ef7e2e980092f50ff2e","contentHash":"59c36e22430a03463b966670753b5817cc5d15e81c2974c67a4058b03e8f086d"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":142}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":70}},"52":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":34},"end":{"line":53,"column":35}},"loc":{"start":{"line":53,"column":40},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":67},"end":{"line":54,"column":68}},"loc":{"start":{"line":54,"column":75},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":62},"end":{"line":64,"column":63}},"loc":{"start":{"line":64,"column":70},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":72,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":4,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1},"f":{"0":11,"1":4,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusP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C,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,IAAI,CAAC,EAAE;QAC/D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,QAAQ,CAAC;aACb,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2302, () => {\n console.log('Mock server listening on port 2302');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2d0d4e29bea716c5805b0f2b2fa8721c970ba6b0","contentHash":"428ae023c5eaa79f800693f741dc8b4ff9e721692bf8ee5c5e205004d3807c5c"}} \ No newline at end of file diff --git a/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json b/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json deleted file mode 100644 index eecd53a..0000000 --- a/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":26},"end":{"line":26,"column":69}},"26":{"start":{"line":27,"column":22},"end":{"line":27,"column":61}},"27":{"start":{"line":28,"column":21},"end":{"line":28,"column":59}},"28":{"start":{"line":29,"column":20},"end":{"line":29,"column":48}},"29":{"start":{"line":30,"column":15},"end":{"line":30,"column":44}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":24}},"31":{"start":{"line":32,"column":0},"end":{"line":144,"column":3}},"32":{"start":{"line":33,"column":4},"end":{"line":87,"column":7}},"33":{"start":{"line":34,"column":28},"end":{"line":34,"column":74}},"34":{"start":{"line":35,"column":31},"end":{"line":35,"column":78}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":71}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":106}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":98}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":104}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":108}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":134}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":98}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":102}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":104}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":108}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":92}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":110}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":110}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":126}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":128}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":102}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":114}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":98}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":134}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":106}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":114}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":116}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":102}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":86}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":94}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":108}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":106}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":136}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":88}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":102}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":102}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":108}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":110}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":126}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":102}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":136}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":118}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":118}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":116}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":132}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":140}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":140}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":138}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":116}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":120}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":98}},"84":{"start":{"line":85,"column":8},"end":{"line":85,"column":110}},"85":{"start":{"line":86,"column":8},"end":{"line":86,"column":100}},"86":{"start":{"line":88,"column":4},"end":{"line":114,"column":7}},"87":{"start":{"line":89,"column":24},"end":{"line":89,"column":66}},"88":{"start":{"line":90,"column":27},"end":{"line":90,"column":68}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":63}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":81}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":78}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":80}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":110}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":106}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":100}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":86}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":106}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":102}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":84}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":88}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":94}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":102}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":92}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":108}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":124}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":130}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":120}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":116}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":96}},"110":{"start":{"line":112,"column":8},"end":{"line":112,"column":110}},"111":{"start":{"line":113,"column":8},"end":{"line":113,"column":100}},"112":{"start":{"line":115,"column":4},"end":{"line":143,"column":7}},"113":{"start":{"line":116,"column":30},"end":{"line":116,"column":72}},"114":{"start":{"line":117,"column":33},"end":{"line":117,"column":79}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":75}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":93}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":86}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":104}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":102}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":110}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":90}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":90}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":92}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":88}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":116}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":112}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":96}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":116}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":134}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":114}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":96}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":120}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":116}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":138}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":106}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":102}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":84}},"139":{"start":{"line":142,"column":8},"end":{"line":142,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":27},"end":{"line":144,"column":1}},"line":32},"7":{"name":"(anonymous_7)","decl":{"start":{"line":33,"column":39},"end":{"line":33,"column":40}},"loc":{"start":{"line":33,"column":45},"end":{"line":87,"column":5}},"line":33},"8":{"name":"(anonymous_8)","decl":{"start":{"line":88,"column":42},"end":{"line":88,"column":43}},"loc":{"start":{"line":88,"column":48},"end":{"line":114,"column":5}},"line":88},"9":{"name":"(anonymous_9)","decl":{"start":{"line":115,"column":41},"end":{"line":115,"column":42}},"loc":{"start":{"line":115,"column":47},"end":{"line":143,"column":5}},"line":115}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":99,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1},"f":{"0":10,"1":99,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAA+D;AAC/D,8DAA6D;AAC7D,4DAA4D;AAC5D,iDAI2B;AAC3B,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,WAAW,GAAsB,IAAA,uCAA2B,GAAE,CAAC;QACrE,MAAM,cAAc,GAAyB,IAAA,6BAAW,EAAC,WAAW,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACnD,IAAA,aAAM,EAAC,WAAW,CAA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SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC5E,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACzD,gBAAgB,CAAC,oBAAoB,CAAC,CACvC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACvD,gBAAgB,CAAC,kBAAkB,CAAC,CACrC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,CAAC,CAChD,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAChD,gBAAgB,CAAC,WAAW,CAAC,CAC9B,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { trimRequest } from '../util/trimming/flight-requests';\nimport { trimFlightLeg } from '../util/trimming/flight-legs';\nimport { trimPassenger } from '../util/trimming/passengers';\nimport {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0ea2704959448ff368f982f2abfe0eb855da9435","contentHash":"8ddbdeb97a97eb667668ec2ce80f1b7d7f08a17491a96afcc7f832e681854b95"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":20},"end":{"line":61,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":65},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":27},"end":{"line":59,"column":5}},"6":{"start":{"line":60,"column":4},"end":{"line":60,"column":26}},"7":{"start":{"line":62,"column":0},"end":{"line":62,"column":34}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":20},"end":{"line":4,"column":21}},"loc":{"start":{"line":4,"column":33},"end":{"line":61,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts"],"names":[],"mappings":";;;AAGO,MAAM,WAAW,GAAG,CAAC,OAA0B,EAAwB,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,cAAc,GAAyB;QAC3C,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,M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M,CAAC,8BAA8B,CAAC;QACtE,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,CAAC;QACtD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;KACnC,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA5DW,QAAA,WAAW,eA4DtB","sourcesContent":["import type { FlightRequestData } from '../../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bc520d2d596e15fc30a0167ecb05712205c25c6c","contentHash":"d3d50c11d1a91b9757c5569b0f19650ed4428dfa62dff5649d84e84957e4ea2e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":44},"end":{"line":6,"column":50}},"5":{"start":{"line":7,"column":23},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":35},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,OAAsB,EAAoB,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE/C,MAAM,UAAU,GAAqB;QACnC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../../interfaces/legs/trimmed-flight-leg.interface';\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"457d848713bbc65e50d8abc11e532a2268cf72d0","contentHash":"a46a8687ad3590299a872bb6385ba6335cef4490a56b4c66eef79677e0dba119"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":28}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,KAAK;QACZ,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,2BAA2B,EAAE,MAAM,CAAC,2BAA2B,CAAC;QAChE,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,SAAS,EAAE,SAAS;QACpB,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,GAAG,EAAE,GAAG;QACR,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;KACrC,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAnCW,QAAA,aAAa,iBAmCxB","sourcesContent":["import type { PassengerData } from '../../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../../interfaces/passenger/trimmed-passenger.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7ff4271595f246c8a07fc7c5165d361e27988127","contentHash":"36c93ded7417c53f692a51aa33144cad1981c18a90ff22159ac7bd92ddc7c78f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CACzC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACxD,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,uBACE,EAAE,EAAE,aAAK,CAAC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,aAAK,CAAC,MAAM,CAAC,GAAG,CAAC;YACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;SACP,CAAC,CACH,EACD,yBAAyB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAC1E,uBAAuB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"46":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"47":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"48":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":56}},"50":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":45},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":39},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":47},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"loc":{"start":{"line":59,"column":31},"end":{"line":62,"column":9}},"line":59},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":39},"end":{"line":64,"column":40}},"loc":{"start":{"line":64,"column":47},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":31},"end":{"line":72,"column":9}},"line":69}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":2,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"f":{"0":10,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC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chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2301, () => {\n console.log('Mock server listening on port 2301');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST /bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2e883902345179d9034f50392f72183e3f64a93c","contentHash":"36149bc236f26200721bd5de6145cf08bcf089529b779d7213c7c8e2fcba661f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":22},"end":{"line":7,"column":71}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":61}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":17},"end":{"line":12,"column":51}},"10":{"start":{"line":13,"column":15},"end":{"line":13,"column":47}},"11":{"start":{"line":14,"column":24},"end":{"line":42,"column":1}},"12":{"start":{"line":15,"column":16},"end":{"line":15,"column":40}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":58}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":38}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":35}},"16":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"17":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"18":{"start":{"line":25,"column":4},"end":{"line":25,"column":37}},"19":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"20":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"21":{"start":{"line":28,"column":8},"end":{"line":28,"column":39}},"22":{"start":{"line":31,"column":8},"end":{"line":31,"column":39}},"23":{"start":{"line":34,"column":4},"end":{"line":39,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":35,"column":33}},"25":{"start":{"line":36,"column":8},"end":{"line":38,"column":81}},"26":{"start":{"line":41,"column":4},"end":{"line":41,"column":44}},"27":{"start":{"line":43,"column":0},"end":{"line":43,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":30},"end":{"line":42,"column":1}},"line":14},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":12},"end":{"line":34,"column":13}},"loc":{"start":{"line":34,"column":33},"end":{"line":39,"column":5}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21},"4":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}],"line":27},"5":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":81}},"type":"binary-expr","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":81}}],"line":27}},"s":{"0":1,"1":7,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":3,"13":3,"14":3,"15":3,"16":3,"17":0,"18":3,"19":3,"20":3,"21":0,"22":3,"23":3,"24":0,"25":0,"26":3,"27":1},"f":{"0":7,"1":3,"2":0},"b":{"0":[1,1,1],"1":[0,7],"2":[7,7],"3":[0,3],"4":[0,3],"5":[3,3]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAkD;AAClD,sDAA8B;AAC9B,gDAAwB;AACxB,8DAAqC;AACrC,oDAA4B;AAC5B,oDAA4B;AAE5B,gDAAwB;AAEjB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IA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 'express';\nimport cors from 'cors';\nimport bodyparser from 'body-parser';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nimport http from 'http';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(bodyparser.json({ limit: '5mb' })); //file size limit specification to receive PDFs\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'development') {\n app.use(exampleRouter);\n } else {\n app.use(exampleRouter);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n app.use((err: any, _, res: any, __) => {\n console.error(err.stack);\n res\n .status(403)\n .send({ message: \"You're not authorized to access this endpoint!\" });\n });\n\n // Create the server\n return http.createServer(app);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"47f63148ead59f979b85a1ede425ee11cf17582e","contentHash":"49bd8b66952e0c8a9cd98dd19934c104f0d22071d08c91d82b0b2c597cdbd40e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"3":{"start":{"line":6,"column":29},"end":{"line":6,"column":89}},"4":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"5":{"start":{"line":8,"column":31},"end":{"line":8,"column":93}},"6":{"start":{"line":9,"column":18},"end":{"line":9,"column":53}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":48}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":75}},"9":{"start":{"line":13,"column":0},"end":{"line":13,"column":79}},"10":{"start":{"line":14,"column":0},"end":{"line":14,"column":72}},"11":{"start":{"line":15,"column":0},"end":{"line":15,"column":82}},"12":{"start":{"line":16,"column":0},"end":{"line":16,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{"0":1},"b":{"0":[1,1,1],"1":[0,1],"2":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts"],"names":[],"mappings":";;;;AAAA,gGAA6F;AAC7F,0FAAuF;AACvF,8FAA2F;AAC3F,8FAA2F;AAC3F,sDAA8B;AAE9B,MAAM,aAAa,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEvC,qBAAqB;AACrB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,6CAAqB,CAAC,CAAC;AACnD,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,2CAAoB,CAAC,CAAC;AACxD,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,2CAAoB,CAAC,CAAC;AACjD,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,uCAAkB,CAAC,CAAC;AAE7D,iBAAS,aAAa,CAAC","sourcesContent":["import { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport express from 'express';\n\nconst exampleRouter = express.Router();\n\n/* Test Controller */\nexampleRouter.get('/query', queryParameterExample);\nexampleRouter.get('/path/:value', pathParameterExample);\nexampleRouter.get('/body', bodyParameterExample);\nexampleRouter.get('/retrievePassengers', retrievePassengers);\n\nexport = exampleRouter;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b3d98a2caac7f728ac9ebf8787fc5b08e5c88c4d","contentHash":"6edfa5a4123ea38baa847d6b94cdcc9aaeef5b8cfaae82c34375b95e87c139be"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":19},"end":{"line":16,"column":55}},"17":{"start":{"line":17,"column":17},"end":{"line":17,"column":51}},"18":{"start":{"line":18,"column":0},"end":{"line":18,"column":26}},"19":{"start":{"line":21,"column":27},"end":{"line":65,"column":2}},"20":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":4},"end":{"line":22,"column":46}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":35}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":68}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":73}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":27},"end":{"line":21,"column":28}},"loc":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"line":21},"9":{"name":"(anonymous_9)","decl":{"start":{"line":21,"column":75},"end":{"line":21,"column":76}},"loc":{"start":{"line":21,"column":88},"end":{"line":65,"column":1}},"line":21},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CA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, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n console.log(process.env.AIRTABLE_API_KEY);\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n console.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n console.log('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n console.log('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fe1ade0a5d53988d69f6cc8be0f95e299471388c","contentHash":"80abbd2773c85413f65141a8ae75298fcc27abd3a898d5e2bb9b9d65b77cb9b8"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":73,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":141}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":72,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":71,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":33},"end":{"line":53,"column":34}},"loc":{"start":{"line":53,"column":39},"end":{"line":73,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":66},"end":{"line":54,"column":67}},"loc":{"start":{"line":54,"column":74},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":61},"end":{"line":64,"column":62}},"loc":{"start":{"line":64,"column":69},"end":{"line":72,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":3,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1},"f":{"0":11,"1":3,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,WAAW,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2303, () => {\n console.log('Mock server listening on port 2303');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"dcededb0f8a75ca7d6a68ef7e2e980092f50ff2e","contentHash":"59c36e22430a03463b966670753b5817cc5d15e81c2974c67a4058b03e8f086d"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":142}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":70}},"52":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":34},"end":{"line":53,"column":35}},"loc":{"start":{"line":53,"column":40},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":67},"end":{"line":54,"column":68}},"loc":{"start":{"line":54,"column":75},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":62},"end":{"line":64,"column":63}},"loc":{"start":{"line":64,"column":70},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":72,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":4,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1},"f":{"0":11,"1":4,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,0DAA0D,EAAE,IAAI,CAAC,EAAE;QACpE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,iBAAiB,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,0FAA0F,CAC3F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,IAAI,CAAC,EAAE;QAC/D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,QAAQ,CAAC;aACb,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2302, () => {\n console.log('Mock server listening on port 2302');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2d0d4e29bea716c5805b0f2b2fa8721c970ba6b0","contentHash":"428ae023c5eaa79f800693f741dc8b4ff9e721692bf8ee5c5e205004d3807c5c"}} \ No newline at end of file diff --git a/.nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json b/.nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json similarity index 84% rename from .nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json rename to .nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json index ce0ba27..4b9e183 100644 --- a/.nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json +++ b/.nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json @@ -1 +1 @@ -{"parent":null,"pid":85340,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Trimming.tests.ts","src/tests/bodyParameterExample.tests.ts","src/tests/pathParameterExample.tests.ts","src/tests/queryParameterExample.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1705537238212,"ppid":85339,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json","externalId":"","uuid":"8c2cf865-2242-4fbd-8ac9-924bd3ddd913","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"]} \ No newline at end of file +{"parent":null,"pid":48901,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Trimming.tests.ts","src/tests/bodyParameterExample.tests.ts","src/tests/pathParameterExample.tests.ts","src/tests/queryParameterExample.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1707089021572,"ppid":48900,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json","externalId":"","uuid":"56a71d98-ad87-44f0-91b9-1b751e1490de","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json index 8ad60ae..be94f67 100644 --- a/.nyc_output/processinfo/index.json +++ b/.nyc_output/processinfo/index.json @@ -1 +1 @@ -{"processes":{"8c2cf865-2242-4fbd-8ac9-924bd3ddd913":{"parent":null,"children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"]},"externalIds":{}} \ No newline at end of file +{"processes":{"56a71d98-ad87-44f0-91b9-1b751e1490de":{"parent":null,"children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":["56a71d98-ad87-44f0-91b9-1b751e1490de"]},"externalIds":{}} \ No newline at end of file diff --git a/build/tests/Trimming.tests.js b/build/tests/Trimming.tests.js index f4f69eb..3eacff7 100644 --- a/build/tests/Trimming.tests.js +++ b/build/tests/Trimming.tests.js @@ -106,7 +106,8 @@ describe('Trimming', () => { (0, chai_1.expect)(legData.fields['AirTable Record ID']).to.equal(trimmedLeg['AirTable Record ID']); (0, chai_1.expect)(legData.fields['Request AirTable Record ID']).to.equal(trimmedLeg['Request AirTable Record ID']); (0, chai_1.expect)(legData.fields['Passenger AirTable Record IDs']).to.equal(trimmedLeg['Passenger AirTable Record IDs']); - (0, chai_1.expect)(legData.fields['Log Airline Credit']).to.equal(trimmedLeg['Log Airline Credit']); + (0, chai_1.expect)(legData.fields['Log Airline Credit'].label).to.equal(trimmedLeg['Log Airline Credit'].label); + (0, chai_1.expect)(legData.fields['Log Airline Credit'].url).to.equal(trimmedLeg['Log Airline Credit'].url); (0, chai_1.expect)(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']); (0, chai_1.expect)(legData.fields['Patient Latest Trip']).to.equal(trimmedLeg['Patient Latest Trip']); (0, chai_1.expect)(legData.fields['Is Latest Trip']).to.equal(trimmedLeg['Is Latest Trip']); diff --git a/src/interfaces/passenger/trimmed-passenger.interface.ts b/src/interfaces/passenger/trimmed-passenger.interface.ts index 25a6d11..d1f76eb 100644 --- a/src/interfaces/passenger/trimmed-passenger.interface.ts +++ b/src/interfaces/passenger/trimmed-passenger.interface.ts @@ -22,6 +22,7 @@ export interface TrimmedPassenger { '# of Booked Flight Requests': number; 'Birth Month': string; 'Full Name': string; + 'Passenger Names (from All Flight Legs)': string[]; Age: number; 'Latest Trip': string; } diff --git a/src/tests/Trimming.tests.ts b/src/tests/Trimming.tests.ts index 53dc137..c76fdb2 100644 --- a/src/tests/Trimming.tests.ts +++ b/src/tests/Trimming.tests.ts @@ -260,6 +260,9 @@ describe('Trimming', () => { expect(passengerData.fields['Full Name']).to.equal( trimmedPassenger['Full Name'] ); + expect( + passengerData.fields['Passenger Names (from All Flight Legs)'] + ).to.equal(trimmedPassenger['Passenger Names (from All Flight Legs)']); expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age); expect(passengerData.fields['Latest Trip']).to.equal( trimmedPassenger['Latest Trip'] diff --git a/src/util/trimming/passengers.ts b/src/util/trimming/passengers.ts index e101c63..443ea9e 100644 --- a/src/util/trimming/passengers.ts +++ b/src/util/trimming/passengers.ts @@ -31,6 +31,8 @@ export const trimPassenger = (passenger: PassengerData): TrimmedPassenger => { '# of Booked Flight Requests': fields['# of Booked Flight Requests'], 'Birth Month': fields['Birth Month'], 'Full Name': fields['Full Name'], + 'Passenger Names (from All Flight Legs)': + fields['Passenger Names (from All Flight Legs)'], Age: Age, 'Latest Trip': fields['Latest Trip'], }; From f36f3a532be520ba9fbc913cb4677b9e44c33dce Mon Sep 17 00:00:00 2001 From: jacobjdavey Date: Sun, 18 Feb 2024 15:41:01 -0600 Subject: [PATCH 02/14] Updated interfaces --- .nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json | 1 + .nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json | 1 - ...cb9258935.json => ebdba896-7155-42e3-a822-74f2a65b3066.json} | 0 .../processinfo/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json | 1 - .../processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json | 1 + .../processinfo/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json | 1 - .../processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json | 1 + .nyc_output/processinfo/index.json | 2 +- 8 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json delete mode 100644 .nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json rename .nyc_output/{6ef9d3c5-9edd-4152-a8c1-360cb9258935.json => ebdba896-7155-42e3-a822-74f2a65b3066.json} (100%) delete mode 100644 .nyc_output/processinfo/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json create mode 100644 .nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json delete mode 100644 .nyc_output/processinfo/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json create mode 100644 .nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json diff --git a/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json b/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json new file mode 100644 index 0000000..33d487e --- /dev/null +++ b/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json @@ -0,0 +1 @@ +{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":73,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":62,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":61,"column":11}},"44":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":19}},"46":{"start":{"line":63,"column":4},"end":{"line":72,"column":7}},"47":{"start":{"line":64,"column":8},"end":{"line":71,"column":11}},"48":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}},"50":{"start":{"line":75,"column":0},"end":{"line":96,"column":3}},"51":{"start":{"line":76,"column":4},"end":{"line":85,"column":7}},"52":{"start":{"line":77,"column":8},"end":{"line":84,"column":11}},"53":{"start":{"line":81,"column":12},"end":{"line":81,"column":56}},"54":{"start":{"line":82,"column":12},"end":{"line":82,"column":142}},"55":{"start":{"line":83,"column":12},"end":{"line":83,"column":19}},"56":{"start":{"line":86,"column":4},"end":{"line":95,"column":7}},"57":{"start":{"line":87,"column":8},"end":{"line":94,"column":11}},"58":{"start":{"line":91,"column":12},"end":{"line":91,"column":56}},"59":{"start":{"line":92,"column":12},"end":{"line":92,"column":70}},"60":{"start":{"line":93,"column":12},"end":{"line":93,"column":19}},"61":{"start":{"line":98,"column":0},"end":{"line":118,"column":3}},"62":{"start":{"line":99,"column":4},"end":{"line":108,"column":7}},"63":{"start":{"line":100,"column":8},"end":{"line":107,"column":11}},"64":{"start":{"line":104,"column":12},"end":{"line":104,"column":56}},"65":{"start":{"line":105,"column":12},"end":{"line":105,"column":141}},"66":{"start":{"line":106,"column":12},"end":{"line":106,"column":19}},"67":{"start":{"line":109,"column":4},"end":{"line":117,"column":7}},"68":{"start":{"line":110,"column":8},"end":{"line":116,"column":11}},"69":{"start":{"line":114,"column":12},"end":{"line":114,"column":56}},"70":{"start":{"line":115,"column":12},"end":{"line":115,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":73,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":47},"end":{"line":62,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":61,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":63,"column":39},"end":{"line":63,"column":40}},"loc":{"start":{"line":63,"column":47},"end":{"line":72,"column":5}},"line":63},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68},"15":{"name":"(anonymous_15)","decl":{"start":{"line":75,"column":34},"end":{"line":75,"column":35}},"loc":{"start":{"line":75,"column":40},"end":{"line":96,"column":1}},"line":75},"16":{"name":"(anonymous_16)","decl":{"start":{"line":76,"column":67},"end":{"line":76,"column":68}},"loc":{"start":{"line":76,"column":75},"end":{"line":85,"column":5}},"line":76},"17":{"name":"(anonymous_17)","decl":{"start":{"line":80,"column":17},"end":{"line":80,"column":18}},"loc":{"start":{"line":80,"column":31},"end":{"line":84,"column":9}},"line":80},"18":{"name":"(anonymous_18)","decl":{"start":{"line":86,"column":62},"end":{"line":86,"column":63}},"loc":{"start":{"line":86,"column":70},"end":{"line":95,"column":5}},"line":86},"19":{"name":"(anonymous_19)","decl":{"start":{"line":90,"column":17},"end":{"line":90,"column":18}},"loc":{"start":{"line":90,"column":31},"end":{"line":94,"column":9}},"line":90},"20":{"name":"(anonymous_20)","decl":{"start":{"line":98,"column":33},"end":{"line":98,"column":34}},"loc":{"start":{"line":98,"column":39},"end":{"line":118,"column":1}},"line":98},"21":{"name":"(anonymous_21)","decl":{"start":{"line":99,"column":66},"end":{"line":99,"column":67}},"loc":{"start":{"line":99,"column":74},"end":{"line":108,"column":5}},"line":99},"22":{"name":"(anonymous_22)","decl":{"start":{"line":103,"column":17},"end":{"line":103,"column":18}},"loc":{"start":{"line":103,"column":31},"end":{"line":107,"column":9}},"line":103},"23":{"name":"(anonymous_23)","decl":{"start":{"line":109,"column":61},"end":{"line":109,"column":62}},"loc":{"start":{"line":109,"column":69},"end":{"line":117,"column":5}},"line":109},"24":{"name":"(anonymous_24)","decl":{"start":{"line":113,"column":17},"end":{"line":113,"column":18}},"loc":{"start":{"line":113,"column":31},"end":{"line":116,"column":9}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":9,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1},"f":{"0":10,"1":9,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,YAAY,CAAC;aACjB,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,C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C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,gBAAgB,CAAC;aACrB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,YAAY,CAAC;aACjB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1234, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/test/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/test/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/test/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/test/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"68aac90603d11bb0a88dc872be00b23f0e274fd3","contentHash":"bde9963c3c74fb75a7081a8e66ac7f169076464b9273084c0872147c21d02e49"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":17},"end":{"line":7,"column":61}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":17},"end":{"line":10,"column":51}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":24},"end":{"line":28,"column":1}},"10":{"start":{"line":13,"column":16},"end":{"line":13,"column":40}},"11":{"start":{"line":15,"column":4},"end":{"line":15,"column":38}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"13":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"14":{"start":{"line":19,"column":4},"end":{"line":19,"column":32}},"15":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"16":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"17":{"start":{"line":25,"column":4},"end":{"line":25,"column":31}},"18":{"start":{"line":27,"column":4},"end":{"line":27,"column":15}},"19":{"start":{"line":29,"column":0},"end":{"line":29,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":30},"end":{"line":28,"column":1}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21}},"s":{"0":1,"1":5,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":0,"17":2,"18":2,"19":1},"f":{"0":5,"1":2},"b":{"0":[1,1,1],"1":[1,4],"2":[5,5],"3":[0,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,sDAA8B;AAC9B,gDAAwB;AACxB,oDAA4B;AAC5B,oDAA4B;AAErB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,SAAS;IACT,IAAA,gBAAM,EAAC,GAAG,CAAC,CAAC;IAEZ,oBAAoB;IACpB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B","sourcesContent":["import routes from '../routes/routes';\nimport express from 'express';\nimport cors from 'cors';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Routes\n routes(app);\n\n // Create the server\n return app;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"574b7cf13a61b53a5f8abcf5e433444c01dda466","contentHash":"d9e380ff3ba88f716bb0d72691e4444ce0c65d32790f5eb1ac457528a835466c"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":31},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":35},"end":{"line":4,"column":85}},"3":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"4":{"start":{"line":6,"column":31},"end":{"line":6,"column":93}},"5":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"6":{"start":{"line":8,"column":29},"end":{"line":8,"column":89}},"7":{"start":{"line":9,"column":26},"end":{"line":9,"column":67}},"8":{"start":{"line":10,"column":15},"end":{"line":35,"column":1}},"9":{"start":{"line":12,"column":4},"end":{"line":12,"column":61}},"10":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"11":{"start":{"line":14,"column":4},"end":{"line":14,"column":53}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":74}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":78}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":71}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":81}},"16":{"start":{"line":21,"column":4},"end":{"line":21,"column":75}},"17":{"start":{"line":22,"column":4},"end":{"line":22,"column":71}},"18":{"start":{"line":23,"column":4},"end":{"line":23,"column":68}},"19":{"start":{"line":24,"column":4},"end":{"line":24,"column":70}},"20":{"start":{"line":26,"column":4},"end":{"line":26,"column":82}},"21":{"start":{"line":27,"column":4},"end":{"line":27,"column":78}},"22":{"start":{"line":28,"column":4},"end":{"line":28,"column":75}},"23":{"start":{"line":29,"column":4},"end":{"line":29,"column":77}},"24":{"start":{"line":31,"column":4},"end":{"line":33,"column":7}},"25":{"start":{"line":32,"column":8},"end":{"line":32,"column":52}},"26":{"start":{"line":34,"column":4},"end":{"line":34,"column":15}},"27":{"start":{"line":36,"column":0},"end":{"line":36,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":15},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":35,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":28},"end":{"line":12,"column":29}},"loc":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":12},"end":{"line":31,"column":13}},"loc":{"start":{"line":31,"column":24},"end":{"line":33,"column":5}},"line":31}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":2,"10":0,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":1,"26":2,"27":1},"f":{"0":2,"1":0,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts"],"names":[],"mappings":";;AAAA,8EAK6C;AAC7C,sFAKiD;AACjD,gGAA6F;AAC7F,8FAA2F;AAC3F,8FAA2F;AAC3F,0FAAuF;AACvF,oEAA4D;AAG5D,MAAM,MAAM,GAAG,CAAC,GAAY,EAAE,EAAE;IAC9B,cAAc;IACd,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC,CAAU,EAAE,GAAa,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAE5E,qBAAqB;IACrB,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAAU,CAAC,CAAC;IAE/B,qBAAqB;IACrB,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,6CAAqB,CAAC,CAAC;IAC9C,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,2CAAoB,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,2CAAoB,CAAC,CAAC;IAC5C,GAAG,CAAC,GAAG,CAAC,0BAA0B,EAAE,uCAAkB,CAAC,CAAC;IAExD,iCAAiC;IACjC,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,8CAAuB,CAAC,CAAC;IAChD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,uCAAgB,CAAC,CAAC;IAC5C,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,sCAAe,CAAC,CAAC;IACzC,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,sCAAe,CAAC,CAAC;IAE3C,sCAAsC;IACtC,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,sDAA2B,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,+CAAoB,CAAC,CAAC;IAC/C,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,8CAAmB,CAAC,CAAC;IAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,8CAAmB,CAAC,CAAC;IAE9C,MAAM;IACN,GAAG,CAAC,GAAG,CAAC,CAAC,CAAU,EAAE,GAAa,EAAE,EAAE;QACpC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["import {\n getAllPassengersForUser,\n getPassengerById,\n createPassenger,\n updatePassenger,\n} from '../controllers/Passenger.controller';\nimport {\n getAllFlightRequestsForUser,\n getFlightRequestById,\n createFlightRequest,\n updateFlightRequest,\n} from '../controllers/FlightRequest.controller';\nimport { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { createUser } from '../controllers/User.controller';\nimport type { Express, Request, Response } from 'express';\n\nconst routes = (app: Express) => {\n // healthcheck\n app.get('/healthcheck', (_: Request, res: Response) => res.sendStatus(200));\n\n /* User Controller */\n app.post('/user/', createUser);\n\n /* Test Controller */\n app.get('/test/query', queryParameterExample);\n app.get('/test/path/:value', pathParameterExample);\n app.get('/test/body', bodyParameterExample);\n app.get('/test/retrievePassengers', retrievePassengers);\n\n /* Passenger Controller Routes */\n app.get('/passenger/', getAllPassengersForUser);\n app.get('/passenger/:id', getPassengerById);\n app.post('/passenger/', createPassenger);\n app.put('/passenger/:id', updatePassenger);\n\n /* Flight Request Controller Routes */\n app.get('/requests/', getAllFlightRequestsForUser);\n app.get('/requests/:id', getFlightRequestById);\n app.post('/requests/', createFlightRequest);\n app.put('/requests/:id', updateFlightRequest);\n\n // 404\n app.use((_: Request, res: Response) => {\n res.status(404).send('404: Page not found');\n });\n\n return app;\n};\n\nexport default routes;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6b984f75542f69cd4da4280b8cc5dae2d432221f","contentHash":"c462c30737e726ba9ba119403edd39f7858259cd2094bf3ccecc92d7a680d6d7"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":120}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":32},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":23},"end":{"line":32,"column":99}},"18":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":37}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":58}},"21":{"start":{"line":50,"column":25},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":22},"end":{"line":54,"column":64}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":36}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":44}},"26":{"start":{"line":71,"column":24},"end":{"line":82,"column":2}},"27":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"28":{"start":{"line":79,"column":22},"end":{"line":79,"column":64}},"29":{"start":{"line":81,"column":4},"end":{"line":81,"column":36}},"30":{"start":{"line":83,"column":0},"end":{"line":83,"column":42}},"31":{"start":{"line":96,"column":24},"end":{"line":107,"column":2}},"32":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"33":{"start":{"line":104,"column":22},"end":{"line":104,"column":64}},"34":{"start":{"line":106,"column":4},"end":{"line":106,"column":36}},"35":{"start":{"line":108,"column":0},"end":{"line":108,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":32},"end":{"line":28,"column":33}},"loc":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":80},"end":{"line":28,"column":81}},"loc":{"start":{"line":28,"column":93},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":50},"end":{"line":32,"column":51}},"loc":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":25},"end":{"line":50,"column":26}},"loc":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":73},"end":{"line":50,"column":74}},"loc":{"start":{"line":50,"column":86},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"line":71},"13":{"name":"(anonymous_13)","decl":{"start":{"line":71,"column":72},"end":{"line":71,"column":73}},"loc":{"start":{"line":71,"column":85},"end":{"line":82,"column":1}},"line":71},"14":{"name":"(anonymous_14)","decl":{"start":{"line":96,"column":24},"end":{"line":96,"column":25}},"loc":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"line":96},"15":{"name":"(anonymous_15)","decl":{"start":{"line":96,"column":72},"end":{"line":96,"column":73}},"loc":{"start":{"line":96,"column":85},"end":{"line":107,"column":1}},"line":96}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA4D;AAG5D;;;;;;;;;;;;;GAaG;AACI,MAAM,uBAAuB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IAC3E,2CAA2C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IAAA,mCAAuB,GAAE,CAAC;IAE5C,+BAA+B;IAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC,CAAA,CAAC;AAfW,QAAA,eAAe,mBAe1B","sourcesContent":["import { createTestPassengerData } from '../data/test-data';\nimport type { Request, Response } from 'express';\n\n/**\n * This function returns all passengers connected to a user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all passengers for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no passengers for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the passengers (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passengers for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllPassengersForUser = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of passengers\n const passengers = Array.from({ length: 10 }, () => createTestPassengerData());\n\n // return the passengers for the user\n res.status(200).send(passengers);\n};\n\n/**\n * This function returns a passenger for a given passengerId\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the passenger, if that fails return a 500 (hint, use try/catch)\n * If there is no passenger for the passengerId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the passenger (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getPassengerById = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function creates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to create the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the created passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createPassenger = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the created passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function updates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to update the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the updated passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updatePassenger = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the updated passenger\n res.status(200).send(passenger);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"207387e7759ab6124f3477b3c9064fac0f30a328","contentHash":"29b5200722f719916125a607b9531c65808ff02f92c0b30d4bcf408f08fe3548"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CACzC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACxD,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,uBACE,EAAE,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACvB,WAAW,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,EAC9C,MAAM,kBACJ,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBAC/B,SAAS;gBACT,wBAAwB;gBACxB,sBAAsB;aACvB,CAAC,EACF,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,QAAQ,EACrB,eAAe,EAAE,QAAQ,EACzB,MAAM,EAAE,aAAK,CAAC,OAAO,CA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AC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":136}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":36},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":27},"end":{"line":32,"column":103}},"18":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":41}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":66}},"21":{"start":{"line":50,"column":29},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":26},"end":{"line":54,"column":68}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":52}},"26":{"start":{"line":70,"column":28},"end":{"line":79,"column":2}},"27":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"28":{"start":{"line":76,"column":26},"end":{"line":76,"column":68}},"29":{"start":{"line":78,"column":4},"end":{"line":78,"column":40}},"30":{"start":{"line":80,"column":0},"end":{"line":80,"column":50}},"31":{"start":{"line":93,"column":28},"end":{"line":102,"column":2}},"32":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"33":{"start":{"line":99,"column":26},"end":{"line":99,"column":68}},"34":{"start":{"line":101,"column":4},"end":{"line":101,"column":40}},"35":{"start":{"line":103,"column":0},"end":{"line":103,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":36},"end":{"line":28,"column":37}},"loc":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":84},"end":{"line":28,"column":85}},"loc":{"start":{"line":28,"column":97},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":54},"end":{"line":32,"column":55}},"loc":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":29},"end":{"line":50,"column":30}},"loc":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":77},"end":{"line":50,"column":78}},"loc":{"start":{"line":50,"column":90},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":70,"column":28},"end":{"line":70,"column":29}},"loc":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"line":70},"13":{"name":"(anonymous_13)","decl":{"start":{"line":70,"column":76},"end":{"line":70,"column":77}},"loc":{"start":{"line":70,"column":89},"end":{"line":79,"column":1}},"line":70},"14":{"name":"(anonymous_14)","decl":{"start":{"line":93,"column":28},"end":{"line":93,"column":29}},"loc":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"line":93},"15":{"name":"(anonymous_15)","decl":{"start":{"line":93,"column":76},"end":{"line":93,"column":77}},"loc":{"start":{"line":93,"column":89},"end":{"line":102,"column":1}},"line":93}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA4D;AAG5D;;;;;;;;;;;;;GAaG;AACI,MAAM,2BAA2B,GAAG,CACzC,GAAY,EACZ,GAAa,EACb,EAAE;IACF,2CAA2C;IAC3C,gCAAgC;IAEhC,yCAAyC;IACzC,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CACrD,IAAA,mCAAuB,GAAE,CAC1B,CAAC;IAEF,0CAA0C;IAC1C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC,CAAA,CAAC;AAdW,QAAA,2BAA2B,+BActC;AAEF;;;;;;;;;;;;GAYG;AACI,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,oDAAoD;IACpD,yCAAyC;IAEzC,+BAA+B;IAC/B,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AATW,QAAA,oBAAoB,wBAS/B;AAEF;;;;;;;;;;GAUG;AACI,MAAM,mBAAmB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACvE,oDAAoD;IACpD,yBAAyB;IAEzB,uCAAuC;IACvC,MAAM;IAEN,+BAA+B;IAC/B,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AAZW,QAAA,mBAAmB,uBAY9B;AAEF;;;;;;;;;;;GAWG;AACI,MAAM,mBAAmB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACvE,mDAAmD;IACnD,0CAA0C;IAE1C,uCAAuC;IACvC,MAAM;IAEN,kDAAkD;IAClD,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AAZW,QAAA,mBAAmB,uBAY9B","sourcesContent":["import { createTestFlightLegData } from '../data/test-data';\nimport type { Request, Response } from 'express';\n\n/**\n * This function returns all flight requests for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all flight requests for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no flight requests for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight requests for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllFlightRequestsForUser = async (\n req: Request,\n res: Response\n) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of flight requests\n const flightRequests = Array.from({ length: 10 }, () =>\n createTestFlightLegData()\n );\n\n // return the flight requests for the user\n res.status(200).send(flightRequests);\n};\n\n/**\n * This function returns a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the flight request, if that fails return a 500 (hint, use try/catch)\n * If there is no flight request for the flightRequestId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight request\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getFlightRequestById = async (req: Request, res: Response) => {\n // get the flightRequestId from the query parameters\n // const { flightRequestId } = req.query;\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function creates a flight request for a given user\n *\n * Steps to complete:\n * 1. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 2. Create a fake flight request by making a call to JotForm. If that fails return a 500 (hint, use try/catch)\n * 3. Return the flight request that was created\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createFlightRequest = async (req: Request, res: Response) => {\n // get the flight request data from the request body\n // const data = req.body;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function updates a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the path parameters, if it doesn't exist return a 400\n * 2. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 3. Update the flight request by making a call to AirTable. If that fails return a 500 (hint, use try/catch)\n * 4. Return the entire flight request that was updated, once again removing any unnecessary data\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updateFlightRequest = async (req: Request, res: Response) => {\n // get the flightRequestId from the path parameters\n // const { flightRequestId } = req.params;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request that was \"updated\"\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"805f4b218f28c900b570f6af56dd4e1b345bbb6d","contentHash":"a7712c10e099d7f7c022c35acafcbda0b210cd43b7d8e6e481001e125ad18044"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":17},"end":{"line":16,"column":62}},"17":{"start":{"line":17,"column":19},"end":{"line":17,"column":55}},"18":{"start":{"line":18,"column":17},"end":{"line":18,"column":51}},"19":{"start":{"line":19,"column":0},"end":{"line":19,"column":26}},"20":{"start":{"line":22,"column":27},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":44}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":78}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":83}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":22,"column":27},"end":{"line":22,"column":28}},"loc":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"line":22},"9":{"name":"(anonymous_9)","decl":{"start":{"line":22,"column":75},"end":{"line":22,"column":76}},"loc":{"start":{"line":22,"column":88},"end":{"line":65,"column":1}},"line":22},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":3,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":3,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[1,2],"7":[3,3],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuC;AACvC,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,gBAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;oBAC9B,CAAC,CAAC,EAAE,CACO,CAAC;gBAChB,gBAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBACF,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACpD,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAC9B,CAAC,CAAC,sCAAsC;4BACzC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAChC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,gBAAM,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAjDW,QAAA,kBAAkB,sBAiD7B","sourcesContent":["import logger from '../../util/logger';\nimport Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n logger.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n logger.info('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n logger.info('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5301b8c2516ef55365843237d90cbab3479044a1","contentHash":"7cfacc2d96cccfb3fe4e2771ed27f64c80b69c1e1861dc89b697829fe430e75a"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":15},"end":{"line":6,"column":47}},"4":{"start":{"line":7,"column":16},"end":{"line":7,"column":49}},"5":{"start":{"line":8,"column":12},"end":{"line":20,"column":2}},"6":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"7":{"start":{"line":21,"column":0},"end":{"line":21,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":15},"end":{"line":19,"column":16}},"loc":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":2,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":2,"1":1},"b":{"0":[1,1,1],"1":[0,2],"2":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,kDAA0B;AAE1B,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC;IACjB,IAAI,EAAE;QACJ,GAAG,EAAE,KAAK;KACX;IACD,SAAS,EAAE;QACT,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,cAAc;SACvB;KACF;IACD,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,IAAA,eAAK,GAAE,CAAC,MAAM,EAAE,GAAG;CACjD,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC","sourcesContent":["import logger from 'pino';\nimport dayjs from 'dayjs';\n\nconst log = logger({\n base: {\n pid: false,\n },\n transport: {\n target: 'pino-pretty',\n options: {\n colorize: true,\n ignore: 'pid,hostname',\n },\n },\n timestamp: () => `,\"time\":\"${dayjs().format()}\"`,\n});\n\nexport default log;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"232d04c895b71e3c1ae5fbb4aaa0fb2319d76217","contentHash":"5697787bb4d9cc7c141097ce4a316c410f0466c1d1368a97d88101583d3e8b12"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":28}},"16":{"start":{"line":16,"column":15},"end":{"line":16,"column":38}},"17":{"start":{"line":17,"column":19},"end":{"line":17,"column":55}},"18":{"start":{"line":18,"column":14},"end":{"line":18,"column":45}},"19":{"start":{"line":32,"column":19},"end":{"line":63,"column":2}},"20":{"start":{"line":32,"column":33},"end":{"line":63,"column":2}},"21":{"start":{"line":34,"column":19},"end":{"line":38,"column":6}},"22":{"start":{"line":40,"column":22},"end":{"line":40,"column":47}},"23":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":55}},"25":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"26":{"start":{"line":47,"column":28},"end":{"line":47,"column":111}},"27":{"start":{"line":48,"column":17},"end":{"line":50,"column":32}},"28":{"start":{"line":51,"column":22},"end":{"line":55,"column":14}},"29":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"30":{"start":{"line":58,"column":8},"end":{"line":58,"column":59}},"31":{"start":{"line":60,"column":4},"end":{"line":62,"column":55}},"32":{"start":{"line":64,"column":0},"end":{"line":64,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":33},"end":{"line":63,"column":2}},"line":32},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":67},"end":{"line":32,"column":68}},"loc":{"start":{"line":32,"column":80},"end":{"line":63,"column":1}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},{"start":{"line":42,"column":4},"end":{"line":45,"column":5}}],"line":42},"9":{"loc":{"start":{"line":49,"column":16},"end":{"line":49,"column":50}},"type":"binary-expr","locations":[{"start":{"line":49,"column":16},"end":{"line":49,"column":44}},{"start":{"line":49,"column":48},"end":{"line":49,"column":50}}],"line":49},"10":{"loc":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},{"start":{"line":56,"column":4},"end":{"line":59,"column":5}}],"line":56}},"s":{"0":1,"1":2,"2":0,"3":2,"4":2,"5":2,"6":0,"7":0,"8":0,"9":0,"10":4,"11":2,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":2,"21":2,"22":2,"23":2,"24":0,"25":0,"26":2,"27":2,"28":2,"29":2,"30":1,"31":1,"32":1},"f":{"0":2,"1":2,"2":0,"3":2,"4":2,"5":0,"6":4,"7":2,"8":2,"9":2},"b":{"0":[1,1,1],"1":[2,0],"2":[2,2],"3":[2,2],"4":[2,2],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,2],"9":[2,0],"10":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,wDAAgC;AAChC,8CAAsB;AAItB;;;;;;;;;;;;GAYG;AACI,MAAM,UAAU,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IAC9D,uFAAuF;IACvF,MAAM,MAAM,GAAG,aAAG,CAAC,MAAM,CAAC;QACxB,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAC;IAEH,4BAA4B;IAC5B,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE5C,sDAAsD;IACtD,IAAI,KAAK,EAAE;QACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC/C,OAAO;KACR;IAED,4FAA4F;IAC5F,MAAM,eAAe,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC,SAAS,MACjE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CACjC,EAAE,CAAC;IAEH,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC;SACvC,MAAM,CAAC;QACN,eAAe,EAAE,qBAAqB,eAAe,GAAG;KACzD,CAAC;SACD,GAAG,EAAE,CAAC;IAET,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,uDAAuD;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;KACpD;IAED,OAAO,GAAG;SACP,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CAAC,IAAA,oBAAa,EAAC,SAAS,CAAC,CAAC,CAA6B,CAAC,CAAC,CAAC;AACnE,CAAC,CAAA,CAAC;AAxCW,QAAA,UAAU,cAwCrB","sourcesContent":["import { trimPassenger } from '../util/trim';\nimport Airtable from 'airtable';\nimport Joi from 'joi';\nimport type { Request, Response } from 'express';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\n\n/**\n * This function returns all passengers connected to a user\n *\n * Steps to complete:\n * 1. Get the first name, last name, and birthdate from the request body, if it doesn't exist return a 400\n * 2. Make a call to AirTable to check if the user exists, if that fails return a 500 (hint, use try/catch)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the passenger (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passengers for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createUser = async (req: Request, res: Response) => {\n // given a first name, last name, and birthdate, check if a user exists in the database\n const schema = Joi.object({\n firstName: Joi.string().required(),\n lastName: Joi.string().required(),\n birthdate: Joi.string().required(),\n });\n\n // validate the request body\n const { error } = schema.validate(req.body);\n\n // if the request body is invalid, send a 400 response\n if (error) {\n res.status(400).send(error.details[0].message);\n return;\n }\n\n // Format it like this: Cardenas, Jessica | 1989-11-10, birthday is a javascript date object\n const formattedUserId = `${req.body.lastName}, ${req.body.firstName} | ${\n req.body.birthdate.split('T')[0]\n }`;\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n const passenger = await base('Passengers')\n .select({\n filterByFormula: `{Passenger ID} = \"${formattedUserId}\"`,\n })\n .all();\n\n if (passenger.length === 0) {\n // return a message saying that the user does not exist\n return res.status(400).send('User does not exist');\n }\n\n return res\n .status(200)\n .send(trimPassenger(passenger[0] as unknown as PassengerData));\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e15cd9b4fe8ebb41461c8eabe5cca7780f49151d","contentHash":"3d9144209dc65035fa45c29cad03d29edba547a5843822a90d5f18f1f369cd3e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":22},"end":{"line":36,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":34,"column":5}},"6":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"7":{"start":{"line":37,"column":0},"end":{"line":37,"column":38}},"8":{"start":{"line":38,"column":20},"end":{"line":95,"column":1}},"9":{"start":{"line":39,"column":40},"end":{"line":39,"column":47}},"10":{"start":{"line":40,"column":65},"end":{"line":40,"column":71}},"11":{"start":{"line":41,"column":27},"end":{"line":93,"column":5}},"12":{"start":{"line":94,"column":4},"end":{"line":94,"column":26}},"13":{"start":{"line":96,"column":0},"end":{"line":96,"column":34}},"14":{"start":{"line":97,"column":22},"end":{"line":128,"column":1}},"15":{"start":{"line":98,"column":40},"end":{"line":98,"column":47}},"16":{"start":{"line":99,"column":44},"end":{"line":99,"column":50}},"17":{"start":{"line":100,"column":23},"end":{"line":126,"column":5}},"18":{"start":{"line":127,"column":4},"end":{"line":127,"column":22}},"19":{"start":{"line":129,"column":0},"end":{"line":129,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":36,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":38,"column":20},"end":{"line":38,"column":21}},"loc":{"start":{"line":38,"column":33},"end":{"line":95,"column":1}},"line":38},"2":{"name":"(anonymous_2)","decl":{"start":{"line":97,"column":22},"end":{"line":97,"column":23}},"loc":{"start":{"line":97,"column":35},"end":{"line":128,"column":1}},"line":97}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":2,"4":2,"5":2,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1},"f":{"0":2,"1":1,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts"],"names":[],"mappings":";;;AAOO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,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gB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n 'Passenger Names (from All Flight Legs)': fields['Passenger Names (from All Flight Legs)'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"67d6232975f9af857ea74fbfa4103b39aed7069d","contentHash":"72bb9181ec01d7afe4e8dda91b8eb39c7ea1f449f0b744dcf56089c622b67674"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":20},"end":{"line":26,"column":48}},"26":{"start":{"line":27,"column":15},"end":{"line":27,"column":38}},"27":{"start":{"line":28,"column":15},"end":{"line":28,"column":44}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":24}},"29":{"start":{"line":30,"column":0},"end":{"line":143,"column":3}},"30":{"start":{"line":31,"column":4},"end":{"line":85,"column":7}},"31":{"start":{"line":32,"column":28},"end":{"line":32,"column":74}},"32":{"start":{"line":33,"column":31},"end":{"line":33,"column":67}},"33":{"start":{"line":34,"column":8},"end":{"line":34,"column":71}},"34":{"start":{"line":35,"column":8},"end":{"line":35,"column":89}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":106}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":98}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":108}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":104}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":134}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":98}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":102}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":104}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":92}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":108}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":110}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":110}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":126}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":128}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":102}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":114}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":98}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":134}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":106}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":114}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":116}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":102}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":86}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":94}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":108}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":106}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":136}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":88}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":102}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":102}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":108}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":110}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":126}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":102}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":136}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":118}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":118}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":116}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":132}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":140}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":140}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":138}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":116}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":120}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":98}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":110}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":100}},"84":{"start":{"line":86,"column":4},"end":{"line":112,"column":7}},"85":{"start":{"line":87,"column":24},"end":{"line":87,"column":66}},"86":{"start":{"line":88,"column":27},"end":{"line":88,"column":61}},"87":{"start":{"line":89,"column":8},"end":{"line":89,"column":63}},"88":{"start":{"line":90,"column":8},"end":{"line":90,"column":81}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":78}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":80}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":110}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":106}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":100}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":86}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":106}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":102}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":84}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":88}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":94}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":102}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":92}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":108}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":124}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":130}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":120}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":116}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":96}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":110}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":100}},"110":{"start":{"line":113,"column":4},"end":{"line":142,"column":7}},"111":{"start":{"line":114,"column":30},"end":{"line":114,"column":72}},"112":{"start":{"line":115,"column":33},"end":{"line":115,"column":73}},"113":{"start":{"line":116,"column":8},"end":{"line":116,"column":75}},"114":{"start":{"line":117,"column":8},"end":{"line":117,"column":93}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":86}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":104}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":102}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":110}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":90}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":90}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":92}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":88}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":116}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":112}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":96}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":116}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":114}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":134}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":96}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":120}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":116}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":138}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":106}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":102}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":160}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":84}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":30,"column":21},"end":{"line":30,"column":22}},"loc":{"start":{"line":30,"column":27},"end":{"line":143,"column":1}},"line":30},"7":{"name":"(anonymous_7)","decl":{"start":{"line":31,"column":39},"end":{"line":31,"column":40}},"loc":{"start":{"line":31,"column":45},"end":{"line":85,"column":5}},"line":31},"8":{"name":"(anonymous_8)","decl":{"start":{"line":86,"column":42},"end":{"line":86,"column":43}},"loc":{"start":{"line":86,"column":48},"end":{"line":112,"column":5}},"line":86},"9":{"name":"(anonymous_9)","decl":{"start":{"line":113,"column":41},"end":{"line":113,"column":42}},"loc":{"start":{"line":113,"column":47},"end":{"line":142,"column":5}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":100,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1},"f":{"0":11,"1":100,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAI2B;AAC3B,uCAAyE;AACzE,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ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;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport { trimRequest, trimFlightLeg, trimPassenger } from '../util/trim';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields['Passenger Names (from All Flight Legs)']).to.equal(\n trimmedPassenger['Passenger Names (from All Flight Legs)']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2f340e41b1d98a2acefa4d951ba048656edc1f1a","contentHash":"e727f05145177dc1c156be1e8add59ee72c836989722728ac75f8604f512efa7"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":81,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":66,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":65,"column":11}},"44":{"start":{"line":63,"column":12},"end":{"line":63,"column":56}},"45":{"start":{"line":64,"column":12},"end":{"line":64,"column":19}},"46":{"start":{"line":67,"column":4},"end":{"line":80,"column":7}},"47":{"start":{"line":68,"column":8},"end":{"line":79,"column":11}},"48":{"start":{"line":77,"column":12},"end":{"line":77,"column":56}},"49":{"start":{"line":78,"column":12},"end":{"line":78,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":81,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":56},"end":{"line":53,"column":57}},"loc":{"start":{"line":53,"column":64},"end":{"line":66,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":62,"column":17},"end":{"line":62,"column":18}},"loc":{"start":{"line":62,"column":31},"end":{"line":65,"column":9}},"line":62},"13":{"name":"(anonymous_13)","decl":{"start":{"line":67,"column":65},"end":{"line":67,"column":66}},"loc":{"start":{"line":67,"column":73},"end":{"line":80,"column":5}},"line":67},"14":{"name":"(anonymous_14)","decl":{"start":{"line":76,"column":17},"end":{"line":76,"column":18}},"loc":{"start":{"line":76,"column":31},"end":{"line":79,"column":9}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":2,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1},"f":{"0":11,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,+CAA+C,EAAE,IAAI,CAAC,EAAE;QACzD,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,IAAI,CAAC,EAAE;QAClE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1235, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 200 response if a user exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Boba',\n lastName: 'Fett',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(200);\n done();\n });\n });\n\n it('should return a 400 response if a user does not exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Test',\n lastName: 'Person',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6477655d74e35648f27dccac941344bb9b5f41d1","contentHash":"f3aa2e35ff02663dbb16780500378498ac9d7eb4dcf9b5fec7eb6579908ef215"}} \ No newline at end of file diff --git a/.nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json b/.nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json deleted file mode 100644 index 7b7831d..0000000 --- a/.nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":73,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":62,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":61,"column":11}},"44":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":19}},"46":{"start":{"line":63,"column":4},"end":{"line":72,"column":7}},"47":{"start":{"line":64,"column":8},"end":{"line":71,"column":11}},"48":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}},"50":{"start":{"line":75,"column":0},"end":{"line":96,"column":3}},"51":{"start":{"line":76,"column":4},"end":{"line":85,"column":7}},"52":{"start":{"line":77,"column":8},"end":{"line":84,"column":11}},"53":{"start":{"line":81,"column":12},"end":{"line":81,"column":56}},"54":{"start":{"line":82,"column":12},"end":{"line":82,"column":142}},"55":{"start":{"line":83,"column":12},"end":{"line":83,"column":19}},"56":{"start":{"line":86,"column":4},"end":{"line":95,"column":7}},"57":{"start":{"line":87,"column":8},"end":{"line":94,"column":11}},"58":{"start":{"line":91,"column":12},"end":{"line":91,"column":56}},"59":{"start":{"line":92,"column":12},"end":{"line":92,"column":70}},"60":{"start":{"line":93,"column":12},"end":{"line":93,"column":19}},"61":{"start":{"line":98,"column":0},"end":{"line":118,"column":3}},"62":{"start":{"line":99,"column":4},"end":{"line":108,"column":7}},"63":{"start":{"line":100,"column":8},"end":{"line":107,"column":11}},"64":{"start":{"line":104,"column":12},"end":{"line":104,"column":56}},"65":{"start":{"line":105,"column":12},"end":{"line":105,"column":141}},"66":{"start":{"line":106,"column":12},"end":{"line":106,"column":19}},"67":{"start":{"line":109,"column":4},"end":{"line":117,"column":7}},"68":{"start":{"line":110,"column":8},"end":{"line":116,"column":11}},"69":{"start":{"line":114,"column":12},"end":{"line":114,"column":56}},"70":{"start":{"line":115,"column":12},"end":{"line":115,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":73,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":47},"end":{"line":62,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":61,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":63,"column":39},"end":{"line":63,"column":40}},"loc":{"start":{"line":63,"column":47},"end":{"line":72,"column":5}},"line":63},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68},"15":{"name":"(anonymous_15)","decl":{"start":{"line":75,"column":34},"end":{"line":75,"column":35}},"loc":{"start":{"line":75,"column":40},"end":{"line":96,"column":1}},"line":75},"16":{"name":"(anonymous_16)","decl":{"start":{"line":76,"column":67},"end":{"line":76,"column":68}},"loc":{"start":{"line":76,"column":75},"end":{"line":85,"column":5}},"line":76},"17":{"name":"(anonymous_17)","decl":{"start":{"line":80,"column":17},"end":{"line":80,"column":18}},"loc":{"start":{"line":80,"column":31},"end":{"line":84,"column":9}},"line":80},"18":{"name":"(anonymous_18)","decl":{"start":{"line":86,"column":62},"end":{"line":86,"column":63}},"loc":{"start":{"line":86,"column":70},"end":{"line":95,"column":5}},"line":86},"19":{"name":"(anonymous_19)","decl":{"start":{"line":90,"column":17},"end":{"line":90,"column":18}},"loc":{"start":{"line":90,"column":31},"end":{"line":94,"column":9}},"line":90},"20":{"name":"(anonymous_20)","decl":{"start":{"line":98,"column":33},"end":{"line":98,"column":34}},"loc":{"start":{"line":98,"column":39},"end":{"line":118,"column":1}},"line":98},"21":{"name":"(anonymous_21)","decl":{"start":{"line":99,"column":66},"end":{"line":99,"column":67}},"loc":{"start":{"line":99,"column":74},"end":{"line":108,"column":5}},"line":99},"22":{"name":"(anonymous_22)","decl":{"start":{"line":103,"column":17},"end":{"line":103,"column":18}},"loc":{"start":{"line":103,"column":31},"end":{"line":107,"column":9}},"line":103},"23":{"name":"(anonymous_23)","decl":{"start":{"line":109,"column":61},"end":{"line":109,"column":62}},"loc":{"start":{"line":109,"column":69},"end":{"line":117,"column":5}},"line":109},"24":{"name":"(anonymous_24)","decl":{"start":{"line":113,"column":17},"end":{"line":113,"column":18}},"loc":{"start":{"line":113,"column":31},"end":{"line":116,"column":9}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":9,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1},"f":{"0":10,"1":9,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC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GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,gBAAgB,CAAC;aACrB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,YAAY,CAAC;aACjB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1234, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/test/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/test/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/test/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/test/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"57aa9073d95d135a17a08f1474ac4220197c97c4","contentHash":"b7c76cf215b7732e5e1960a847e69ae7a3ff39cf6d430d23b4caca172701574d"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":17},"end":{"line":7,"column":61}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":17},"end":{"line":10,"column":51}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":24},"end":{"line":28,"column":1}},"10":{"start":{"line":13,"column":16},"end":{"line":13,"column":40}},"11":{"start":{"line":15,"column":4},"end":{"line":15,"column":38}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"13":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"14":{"start":{"line":19,"column":4},"end":{"line":19,"column":32}},"15":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"16":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"17":{"start":{"line":25,"column":4},"end":{"line":25,"column":31}},"18":{"start":{"line":27,"column":4},"end":{"line":27,"column":15}},"19":{"start":{"line":29,"column":0},"end":{"line":29,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":30},"end":{"line":28,"column":1}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21}},"s":{"0":1,"1":5,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":0,"17":2,"18":2,"19":1},"f":{"0":5,"1":2},"b":{"0":[1,1,1],"1":[1,4],"2":[5,5],"3":[0,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,sDAA8B;AAC9B,gDAAwB;AACxB,oDAA4B;AAC5B,oDAA4B;AAErB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,SAAS;IACT,IAAA,gBAAM,EAAC,GAAG,CAAC,CAAC;IAEZ,oBAAoB;IACpB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B","sourcesContent":["import routes from '../routes/routes';\nimport express from 'express';\nimport cors from 'cors';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Routes\n routes(app);\n\n // Create the server\n return app;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"46335f6beef9a7a110f960ac8b7548218a97dc11","contentHash":"9ad18c702586b8959eb8226c4403db12f8a07e4789b72ba849844476cd061dee"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":31},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":35},"end":{"line":4,"column":85}},"3":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"4":{"start":{"line":6,"column":31},"end":{"line":6,"column":93}},"5":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"6":{"start":{"line":8,"column":29},"end":{"line":8,"column":89}},"7":{"start":{"line":9,"column":26},"end":{"line":9,"column":67}},"8":{"start":{"line":10,"column":15},"end":{"line":35,"column":1}},"9":{"start":{"line":12,"column":4},"end":{"line":12,"column":61}},"10":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"11":{"start":{"line":14,"column":4},"end":{"line":14,"column":53}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":74}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":78}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":71}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":81}},"16":{"start":{"line":21,"column":4},"end":{"line":21,"column":75}},"17":{"start":{"line":22,"column":4},"end":{"line":22,"column":71}},"18":{"start":{"line":23,"column":4},"end":{"line":23,"column":68}},"19":{"start":{"line":24,"column":4},"end":{"line":24,"column":70}},"20":{"start":{"line":26,"column":4},"end":{"line":26,"column":82}},"21":{"start":{"line":27,"column":4},"end":{"line":27,"column":78}},"22":{"start":{"line":28,"column":4},"end":{"line":28,"column":75}},"23":{"start":{"line":29,"column":4},"end":{"line":29,"column":77}},"24":{"start":{"line":31,"column":4},"end":{"line":33,"column":7}},"25":{"start":{"line":32,"column":8},"end":{"line":32,"column":52}},"26":{"start":{"line":34,"column":4},"end":{"line":34,"column":15}},"27":{"start":{"line":36,"column":0},"end":{"line":36,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":15},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":35,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":28},"end":{"line":12,"column":29}},"loc":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":12},"end":{"line":31,"column":13}},"loc":{"start":{"line":31,"column":24},"end":{"line":33,"column":5}},"line":31}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":2,"10":0,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":1,"26":2,"27":1},"f":{"0":2,"1":0,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts"],"names":[],"mappings":";;AAAA,8EAK6C;AAC7C,sFAKiD;AACjD,gGAA6F;AA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AAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["import {\n getAllPassengersForUser,\n getPassengerById,\n createPassenger,\n updatePassenger,\n} from '../controllers/Passenger.controller';\nimport {\n getAllFlightRequestsForUser,\n getFlightRequestById,\n createFlightRequest,\n updateFlightRequest,\n} from '../controllers/FlightRequest.controller';\nimport { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { createUser } from '../controllers/User.controller';\nimport type { Express, Request, Response } from 'express';\n\nconst routes = (app: Express) => {\n // healthcheck\n app.get('/healthcheck', (_: Request, res: Response) => res.sendStatus(200));\n\n /* User Controller */\n app.post('/user/', createUser);\n\n /* Test Controller */\n app.get('/test/query', queryParameterExample);\n app.get('/test/path/:value', pathParameterExample);\n app.get('/test/body', bodyParameterExample);\n app.get('/test/retrievePassengers', retrievePassengers);\n\n /* Passenger Controller Routes */\n app.get('/passenger/', getAllPassengersForUser);\n app.get('/passenger/:id', getPassengerById);\n app.post('/passenger/', createPassenger);\n app.put('/passenger/:id', updatePassenger);\n\n /* Flight Request Controller Routes */\n app.get('/requests/', getAllFlightRequestsForUser);\n app.get('/requests/:id', getFlightRequestById);\n app.post('/requests/', createFlightRequest);\n app.put('/requests/:id', updateFlightRequest);\n\n // 404\n app.use((_: Request, res: Response) => {\n res.status(404).send('404: Page not found');\n });\n\n return app;\n};\n\nexport default routes;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1f61427a7846423ed1efa12da576e70e33e83581","contentHash":"23ba3eb42cd2ea30590e41f386c001467b9ecbae4676ee014b7ca75958a0a418"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":120}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":32},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":23},"end":{"line":32,"column":99}},"18":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":37}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":58}},"21":{"start":{"line":50,"column":25},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":22},"end":{"line":54,"column":64}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":36}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":44}},"26":{"start":{"line":71,"column":24},"end":{"line":82,"column":2}},"27":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"28":{"start":{"line":79,"column":22},"end":{"line":79,"column":64}},"29":{"start":{"line":81,"column":4},"end":{"line":81,"column":36}},"30":{"start":{"line":83,"column":0},"end":{"line":83,"column":42}},"31":{"start":{"line":96,"column":24},"end":{"line":107,"column":2}},"32":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"33":{"start":{"line":104,"column":22},"end":{"line":104,"column":64}},"34":{"start":{"line":106,"column":4},"end":{"line":106,"column":36}},"35":{"start":{"line":108,"column":0},"end":{"line":108,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":32},"end":{"line":28,"column":33}},"loc":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":80},"end":{"line":28,"column":81}},"loc":{"start":{"line":28,"column":93},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":50},"end":{"line":32,"column":51}},"loc":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":25},"end":{"line":50,"column":26}},"loc":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":73},"end":{"line":50,"column":74}},"loc":{"start":{"line":50,"column":86},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"line":71},"13":{"name":"(anonymous_13)","decl":{"start":{"line":71,"column":72},"end":{"line":71,"column":73}},"loc":{"start":{"line":71,"column":85},"end":{"line":82,"column":1}},"line":71},"14":{"name":"(anonymous_14)","decl":{"start":{"line":96,"column":24},"end":{"line":96,"column":25}},"loc":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"line":96},"15":{"name":"(anonymous_15)","decl":{"start":{"line":96,"column":72},"end":{"line":96,"column":73}},"loc":{"start":{"line":96,"column":85},"end":{"line":107,"column":1}},"line":96}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA4D;AAG5D;;;;;;;;;;;;;GAaG;AACI,MAAM,uBAAuB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IAC3E,2CAA2C;IAC3C,gCAAgC;IAEhC,oCAAoC;IACpC,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,IAAA,mCAAuB,GAAE,CAAC,CAAC;IAE/E,qCAAqC;IACrC,GAAG,CAAC,MAAM,CAAC,GAAG,C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from 'express';\n\n/**\n * This function returns all passengers connected to a user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all passengers for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no passengers for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the passengers (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passengers for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllPassengersForUser = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of passengers\n const passengers = Array.from({ length: 10 }, () => createTestPassengerData());\n\n // return the passengers for the user\n res.status(200).send(passengers);\n};\n\n/**\n * This function returns a passenger for a given passengerId\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the passenger, if that fails return a 500 (hint, use try/catch)\n * If there is no passenger for the passengerId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the passenger (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getPassengerById = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function creates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to create the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the created passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createPassenger = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the created passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function updates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to update the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the updated passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updatePassenger = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the updated passenger\n res.status(200).send(passenger);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8f7657434cafdc140d32295356ab08da045c052c","contentHash":"44a64de87bc6986d02736aac2a8aa78fdee088f53da5b6cd04a1968cae64f837"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflights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kRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5e7526c6f301080ca8d90873230c002fa57d7ea0","contentHash":"b44cf625c26f8ee723f3ec6af76c3f649ea386b99a9e954c2d8c851ef3b97884"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8c0380d5dee4fcbe96c441c04360837fa59afd4b","contentHash":"540372effbb40d7fcff8d110c1c051f0abd74521e2f9465eebe213c75b1d1092"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":136}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":36},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":27},"end":{"line":32,"column":103}},"18":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":41}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":66}},"21":{"start":{"line":50,"column":29},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":26},"end":{"line":54,"column":68}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":52}},"26":{"start":{"line":70,"column":28},"end":{"line":79,"column":2}},"27":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"28":{"start":{"line":76,"column":26},"end":{"line":76,"column":68}},"29":{"start":{"line":78,"column":4},"end":{"line":78,"column":40}},"30":{"start":{"line":80,"column":0},"end":{"line":80,"column":50}},"31":{"start":{"line":93,"column":28},"end":{"line":102,"column":2}},"32":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"33":{"start":{"line":99,"column":26},"end":{"line":99,"column":68}},"34":{"start":{"line":101,"column":4},"end":{"line":101,"column":40}},"35":{"start":{"line":103,"column":0},"end":{"line":103,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":36},"end":{"line":28,"column":37}},"loc":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":84},"end":{"line":28,"column":85}},"loc":{"start":{"line":28,"column":97},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":54},"end":{"line":32,"column":55}},"loc":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":29},"end":{"line":50,"column":30}},"loc":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":77},"end":{"line":50,"column":78}},"loc":{"start":{"line":50,"column":90},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":70,"column":28},"end":{"line":70,"column":29}},"loc":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"line":70},"13":{"name":"(anonymous_13)","decl":{"start":{"line":70,"column":76},"end":{"line":70,"column":77}},"loc":{"start":{"line":70,"column":89},"end":{"line":79,"column":1}},"line":70},"14":{"name":"(anonymous_14)","decl":{"start":{"line":93,"column":28},"end":{"line":93,"column":29}},"loc":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"line":93},"15":{"name":"(anonymous_15)","decl":{"start":{"line":93,"column":76},"end":{"line":93,"column":77}},"loc":{"start":{"line":93,"column":89},"end":{"line":102,"column":1}},"line":93}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracle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EAAE,GAAa,EAAE,EAAE;IACvE,mDAAmD;IACnD,0CAA0C;IAE1C,uCAAuC;IACvC,MAAM;IAEN,kDAAkD;IAClD,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AAZW,QAAA,mBAAmB,uBAY9B","sourcesContent":["import { createTestFlightLegData } from '../data/test-data';\nimport type { Request, Response } from 'express';\n\n/**\n * This function returns all flight requests for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all flight requests for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no flight requests for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight requests for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllFlightRequestsForUser = async (\n req: Request,\n res: Response\n) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of flight requests\n const flightRequests = Array.from({ length: 10 }, () =>\n createTestFlightLegData()\n );\n\n // return the flight requests for the user\n res.status(200).send(flightRequests);\n};\n\n/**\n * This function returns a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the flight request, if that fails return a 500 (hint, use try/catch)\n * If there is no flight request for the flightRequestId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight request\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getFlightRequestById = async (req: Request, res: Response) => {\n // get the flightRequestId from the query parameters\n // const { flightRequestId } = req.query;\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function creates a flight request for a given user\n *\n * Steps to complete:\n * 1. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 2. Create a fake flight request by making a call to JotForm. If that fails return a 500 (hint, use try/catch)\n * 3. Return the flight request that was created\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createFlightRequest = async (req: Request, res: Response) => {\n // get the flight request data from the request body\n // const data = req.body;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function updates a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the path parameters, if it doesn't exist return a 400\n * 2. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 3. Update the flight request by making a call to AirTable. If that fails return a 500 (hint, use try/catch)\n * 4. Return the entire flight request that was updated, once again removing any unnecessary data\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updateFlightRequest = async (req: Request, res: Response) => {\n // get the flightRequestId from the path parameters\n // const { flightRequestId } = req.params;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request that was \"updated\"\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"64bbc9bb118e191d412aa739558cae2b2a6cdef3","contentHash":"b3d73dff44760751057254f83a8c2c0de63af239e2adb160473f39f1058d16f0"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a1dde1589da5f256cad5707359308f8d826361e7","contentHash":"ef260a9a757ab0994bb6bfec2b4352ee8632b265b4cbe9426041cac7305de717"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"98ebc7c086bfb491fa51efc786d37cc1d985d87f","contentHash":"ff0f05e2206d25b39ccb247fbf915b2e946b5edc45a3cd61acce3c34c7ebb447"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9a23d3cdec1a4d04a343ebb79baf61132826aba7","contentHash":"e74ba7948f87fcd6e0b0f5d161a2d7ef6a6239cc92933ff738f8e9f86a8a552d"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":17},"end":{"line":16,"column":62}},"17":{"start":{"line":17,"column":19},"end":{"line":17,"column":55}},"18":{"start":{"line":18,"column":17},"end":{"line":18,"column":51}},"19":{"start":{"line":19,"column":0},"end":{"line":19,"column":26}},"20":{"start":{"line":22,"column":27},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":44}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":78}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":83}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":22,"column":27},"end":{"line":22,"column":28}},"loc":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"line":22},"9":{"name":"(anonymous_9)","decl":{"start":{"line":22,"column":75},"end":{"line":22,"column":76}},"loc":{"start":{"line":22,"column":88},"end":{"line":65,"column":1}},"line":22},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":3,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":3,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[1,2],"7":[3,3],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuC;AACvC,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,gBAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;oBAC9B,CAAC,CAAC,EAAE,CACO,CAAC;gBAChB,gBAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBACF,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACpD,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAC9B,CAAC,CAAC,sCAAsC;4BACzC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAChC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,gBAAM,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAjDW,QAAA,kBAAkB,sBAiD7B","sourcesContent":["import logger from '../../util/logger';\nimport Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n logger.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n logger.info('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n logger.info('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"27922a5ae95791e10cbe18518eeef1ea9b7dcd01","contentHash":"96cbaecfa596419410e31230675e6146138e934c3d4abe8d8d04549c3f37b060"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":15},"end":{"line":6,"column":47}},"4":{"start":{"line":7,"column":16},"end":{"line":7,"column":49}},"5":{"start":{"line":8,"column":12},"end":{"line":20,"column":2}},"6":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"7":{"start":{"line":21,"column":0},"end":{"line":21,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":15},"end":{"line":19,"column":16}},"loc":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":2,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":2,"1":1},"b":{"0":[1,1,1],"1":[0,2],"2":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,kDAA0B;AAE1B,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC;IACjB,IAAI,EAAE;QACJ,GAAG,EAAE,KAAK;KACX;IACD,SAAS,EAAE;QACT,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,cAAc;SACvB;KACF;IACD,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,IAAA,eAAK,GAAE,CAAC,MAAM,EAAE,GAAG;CACjD,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC","sourcesContent":["import logger from 'pino';\nimport dayjs from 'dayjs';\n\nconst log = logger({\n base: {\n pid: false,\n },\n transport: {\n target: 'pino-pretty',\n options: {\n colorize: true,\n ignore: 'pid,hostname',\n },\n },\n timestamp: () => `,\"time\":\"${dayjs().format()}\"`,\n});\n\nexport default log;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"912ea28ee833c3ccc2a11144a476b39d0b9de12a","contentHash":"77a18c748dfc5b601e06d48b62f16cb30bf5e8cc6ca1cacf9c5873de89ff10a8"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":28}},"16":{"start":{"line":16,"column":19},"end":{"line":16,"column":55}},"17":{"start":{"line":17,"column":14},"end":{"line":17,"column":45}},"18":{"start":{"line":18,"column":19},"end":{"line":47,"column":2}},"19":{"start":{"line":18,"column":33},"end":{"line":47,"column":2}},"20":{"start":{"line":20,"column":19},"end":{"line":24,"column":6}},"21":{"start":{"line":26,"column":22},"end":{"line":26,"column":47}},"22":{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},"23":{"start":{"line":29,"column":8},"end":{"line":29,"column":55}},"24":{"start":{"line":30,"column":8},"end":{"line":30,"column":15}},"25":{"start":{"line":33,"column":28},"end":{"line":33,"column":111}},"26":{"start":{"line":34,"column":17},"end":{"line":36,"column":32}},"27":{"start":{"line":37,"column":22},"end":{"line":41,"column":14}},"28":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"29":{"start":{"line":44,"column":8},"end":{"line":44,"column":59}},"30":{"start":{"line":46,"column":4},"end":{"line":46,"column":53}},"31":{"start":{"line":48,"column":0},"end":{"line":48,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":18,"column":19},"end":{"line":18,"column":20}},"loc":{"start":{"line":18,"column":33},"end":{"line":47,"column":2}},"line":18},"9":{"name":"(anonymous_9)","decl":{"start":{"line":18,"column":67},"end":{"line":18,"column":68}},"loc":{"start":{"line":18,"column":80},"end":{"line":47,"column":1}},"line":18}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":31,"column":5}},{"start":{"line":28,"column":4},"end":{"line":31,"column":5}}],"line":28},"9":{"loc":{"start":{"line":35,"column":16},"end":{"line":35,"column":50}},"type":"binary-expr","locations":[{"start":{"line":35,"column":16},"end":{"line":35,"column":44}},{"start":{"line":35,"column":48},"end":{"line":35,"column":50}}],"line":35},"10":{"loc":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},{"start":{"line":42,"column":4},"end":{"line":45,"column":5}}],"line":42}},"s":{"0":1,"1":2,"2":0,"3":2,"4":2,"5":2,"6":0,"7":0,"8":0,"9":0,"10":4,"11":2,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":2,"20":2,"21":2,"22":2,"23":0,"24":0,"25":2,"26":2,"27":2,"28":2,"29":1,"30":1,"31":1},"f":{"0":2,"1":2,"2":0,"3":2,"4":2,"5":0,"6":4,"7":2,"8":2,"9":2},"b":{"0":[1,1,1],"1":[2,0],"2":[2,2],"3":[2,2],"4":[2,2],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,2],"9":[2,0],"10":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","sources":["/Users/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,CAAC;IAET,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,uDAAuD;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;KACpD;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC,CAAA,CAAC;AAtCW,QAAA,UAAU,cAsCrB","sourcesContent":["import Airtable from 'airtable';\nimport Joi from 'joi';\nimport type { Request, Response } from 'express';\n\nexport const createUser = async (req: Request, res: Response) => {\n // given a first name, last name, and birthdate, check if a user exists in the database\n const schema = Joi.object({\n firstName: Joi.string().required(),\n lastName: Joi.string().required(),\n birthdate: Joi.date().required(),\n });\n\n // validate the request body\n const { error } = schema.validate(req.body);\n\n // if the request body is invalid, send a 400 response\n if (error) {\n res.status(400).send(error.details[0].message);\n return;\n }\n\n // Format it like this: Cardenas, Jessica | 1989-11-10, birthday is a javascript date object\n const formattedUserId = `${req.body.lastName}, ${req.body.firstName} | ${\n req.body.birthdate.split('T')[0]\n }`;\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n const passenger = await base('Passengers')\n .select({\n filterByFormula: `{Passenger ID} = \"${formattedUserId}\"`,\n })\n .all();\n\n if (passenger.length === 0) {\n // return a message saying that the user does not exist\n return res.status(400).send('User does not exist');\n }\n\n return res.status(200).send(passenger[0].fields);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b08ebf239965edf92a0474f33de9b3fc266f05a8","contentHash":"f63ee0d66ef2b6367b2961b4caeea05c0b765895814b240ff8cf57d643a4c7b0"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":20},"end":{"line":26,"column":48}},"26":{"start":{"line":27,"column":15},"end":{"line":27,"column":38}},"27":{"start":{"line":28,"column":15},"end":{"line":28,"column":44}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":24}},"29":{"start":{"line":30,"column":0},"end":{"line":142,"column":3}},"30":{"start":{"line":31,"column":4},"end":{"line":85,"column":7}},"31":{"start":{"line":32,"column":28},"end":{"line":32,"column":74}},"32":{"start":{"line":33,"column":31},"end":{"line":33,"column":67}},"33":{"start":{"line":34,"column":8},"end":{"line":34,"column":71}},"34":{"start":{"line":35,"column":8},"end":{"line":35,"column":89}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":106}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":98}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":108}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":104}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":134}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":98}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":102}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":104}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":92}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":108}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":110}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":110}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":126}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":128}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":102}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":114}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":98}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":134}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":106}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":114}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":116}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":102}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":86}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":94}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":108}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":106}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":136}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":88}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":102}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":102}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":108}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":110}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":126}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":102}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":136}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":118}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":118}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":116}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":132}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":140}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":140}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":138}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":116}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":120}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":98}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":110}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":100}},"84":{"start":{"line":86,"column":4},"end":{"line":112,"column":7}},"85":{"start":{"line":87,"column":24},"end":{"line":87,"column":66}},"86":{"start":{"line":88,"column":27},"end":{"line":88,"column":61}},"87":{"start":{"line":89,"column":8},"end":{"line":89,"column":63}},"88":{"start":{"line":90,"column":8},"end":{"line":90,"column":81}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":78}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":80}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":110}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":106}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":100}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":86}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":106}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":102}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":84}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":88}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":94}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":102}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":92}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":108}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":124}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":130}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":120}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":116}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":96}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":110}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":100}},"110":{"start":{"line":113,"column":4},"end":{"line":141,"column":7}},"111":{"start":{"line":114,"column":30},"end":{"line":114,"column":72}},"112":{"start":{"line":115,"column":33},"end":{"line":115,"column":73}},"113":{"start":{"line":116,"column":8},"end":{"line":116,"column":75}},"114":{"start":{"line":117,"column":8},"end":{"line":117,"column":93}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":86}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":104}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":102}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":110}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":90}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":90}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":92}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":88}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":116}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":112}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":96}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":116}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":114}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":134}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":96}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":120}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":116}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":138}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":106}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":102}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":84}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":30,"column":21},"end":{"line":30,"column":22}},"loc":{"start":{"line":30,"column":27},"end":{"line":142,"column":1}},"line":30},"7":{"name":"(anonymous_7)","decl":{"start":{"line":31,"column":39},"end":{"line":31,"column":40}},"loc":{"start":{"line":31,"column":45},"end":{"line":85,"column":5}},"line":31},"8":{"name":"(anonymous_8)","decl":{"start":{"line":86,"column":42},"end":{"line":86,"column":43}},"loc":{"start":{"line":86,"column":48},"end":{"line":112,"column":5}},"line":86},"9":{"name":"(anonymous_9)","decl":{"start":{"line":113,"column":41},"end":{"line":113,"column":42}},"loc":{"start":{"line":113,"column":47},"end":{"line":141,"column":5}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":99,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1},"f":{"0":11,"1":99,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAI2B;AAC3B,uCAAyE;AACzE,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,WAAW,GAAsB,IAAA,uCAA2B,GAAE,CAAC;QACrE,MAAM,cAAc,GAAyB,IAAA,kBAAW,EAAC,WAAW,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACnD,IAAA,aAAM,EAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACrE,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,cAAc,CAAC,eAAe,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;QAC9E,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACnD,cAAc,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,CAClE,gBAAgB,CAAC,6BAA6B,CAAC,CAChD,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAChD,gBAAgB,CAAC,WAAW,CAAC,CAC9B,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport { trimRequest, trimFlightLeg, trimPassenger } from '../util/trim';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"98c39b6ad38ba99748353c6cc844a8d9b61b6942","contentHash":"fa7e9a545836bd6f6e0f69b4f1f0ec7b358d1127275b5e24ba01543be5c2af5e"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":28}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}},"8":{"start":{"line":37,"column":20},"end":{"line":94,"column":1}},"9":{"start":{"line":38,"column":40},"end":{"line":38,"column":47}},"10":{"start":{"line":39,"column":65},"end":{"line":39,"column":71}},"11":{"start":{"line":40,"column":27},"end":{"line":92,"column":5}},"12":{"start":{"line":93,"column":4},"end":{"line":93,"column":26}},"13":{"start":{"line":95,"column":0},"end":{"line":95,"column":34}},"14":{"start":{"line":96,"column":22},"end":{"line":127,"column":1}},"15":{"start":{"line":97,"column":40},"end":{"line":97,"column":47}},"16":{"start":{"line":98,"column":44},"end":{"line":98,"column":50}},"17":{"start":{"line":99,"column":23},"end":{"line":125,"column":5}},"18":{"start":{"line":126,"column":4},"end":{"line":126,"column":22}},"19":{"start":{"line":128,"column":0},"end":{"line":128,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":35,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":37,"column":20},"end":{"line":37,"column":21}},"loc":{"start":{"line":37,"column":33},"end":{"line":94,"column":1}},"line":37},"2":{"name":"(anonymous_2)","decl":{"start":{"line":96,"column":22},"end":{"line":96,"column":23}},"loc":{"start":{"line":96,"column":35},"end":{"line":127,"column":1}},"line":96}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1},"f":{"0":1,"1":1,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts"],"names":[],"mappings":";;;AAOO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACx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EAAE;QACN,WAAW,EAAE,WAAW;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"df2c968a518275d2495d90ad16aa67ce7d9f2263","contentHash":"d33ddbc5a7d1b2f0335c282a7460156585547554def0428b26d2aef293ad73e3"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":81,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":66,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":65,"column":11}},"44":{"start":{"line":63,"column":12},"end":{"line":63,"column":56}},"45":{"start":{"line":64,"column":12},"end":{"line":64,"column":19}},"46":{"start":{"line":67,"column":4},"end":{"line":80,"column":7}},"47":{"start":{"line":68,"column":8},"end":{"line":79,"column":11}},"48":{"start":{"line":77,"column":12},"end":{"line":77,"column":56}},"49":{"start":{"line":78,"column":12},"end":{"line":78,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":81,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":56},"end":{"line":53,"column":57}},"loc":{"start":{"line":53,"column":64},"end":{"line":66,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":62,"column":17},"end":{"line":62,"column":18}},"loc":{"start":{"line":62,"column":31},"end":{"line":65,"column":9}},"line":62},"13":{"name":"(anonymous_13)","decl":{"start":{"line":67,"column":65},"end":{"line":67,"column":66}},"loc":{"start":{"line":67,"column":73},"end":{"line":80,"column":5}},"line":67},"14":{"name":"(anonymous_14)","decl":{"start":{"line":76,"column":17},"end":{"line":76,"column":18}},"loc":{"start":{"line":76,"column":31},"end":{"line":79,"column":9}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":2,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1},"f":{"0":11,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,+CAA+C,EAAE,IAAI,CAAC,EAAE;QACzD,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,IAAI,CAAC,EAAE;QAClE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1235, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 200 response if a user exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Boba',\n lastName: 'Fett',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(200);\n done();\n });\n });\n\n it('should return a 400 response if a user does not exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Test',\n lastName: 'Person',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bc149e91feb424d23892352307d3a6e143c28d74","contentHash":"1a6aaaa524f65900392271d2441a9228db29f3a6dbc56f97690cfefcb84a82fd"}} \ No newline at end of file diff --git a/.nyc_output/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json b/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json similarity index 100% rename from .nyc_output/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json rename to .nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json diff --git a/.nyc_output/processinfo/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json b/.nyc_output/processinfo/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json deleted file mode 100644 index 079a70c..0000000 --- a/.nyc_output/processinfo/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":"d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e","pid":67934,"argv":["/usr/local/bin/node","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/node_modules/thread-stream/lib/worker.js"],"execArgv":[],"cwd":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend","time":1705866649800,"ppid":67933,"coverageFilename":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/.nyc_output/6ef9d3c5-9edd-4152-a8c1-360cb9258935.json","externalId":"","uuid":"6ef9d3c5-9edd-4152-a8c1-360cb9258935","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json b/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json new file mode 100644 index 0000000..da8240b --- /dev/null +++ b/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json @@ -0,0 +1 @@ +{"parent":null,"pid":63363,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Examples.tests.ts","src/tests/Trimming.tests.ts","src/tests/User.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1708292036041,"ppid":63362,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json","externalId":"","uuid":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json b/.nyc_output/processinfo/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json deleted file mode 100644 index 63b0aa1..0000000 --- a/.nyc_output/processinfo/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":67934,"argv":["/usr/local/bin/node","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Examples.tests.ts","src/tests/Trimming.tests.ts","src/tests/User.tests.ts"],"execArgv":[],"cwd":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend","time":1705866647543,"ppid":67933,"coverageFilename":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/.nyc_output/d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e.json","externalId":"","uuid":"d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e","files":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json b/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json new file mode 100644 index 0000000..0371685 --- /dev/null +++ b/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json @@ -0,0 +1 @@ +{"parent":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","pid":63363,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/thread-stream/lib/worker.js"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1708292038300,"ppid":63362,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json","externalId":"","uuid":"ebdba896-7155-42e3-a822-74f2a65b3066","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json index a26b3d1..4519f0a 100644 --- a/.nyc_output/processinfo/index.json +++ b/.nyc_output/processinfo/index.json @@ -1 +1 @@ -{"processes":{"6ef9d3c5-9edd-4152-a8c1-360cb9258935":{"parent":"d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e","children":[]},"d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e":{"parent":null,"children":["6ef9d3c5-9edd-4152-a8c1-360cb9258935"]}},"files":{"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":["d17279ea-2c6c-4bc8-bf91-e1388e3c7c6e"]},"externalIds":{}} \ No newline at end of file +{"processes":{"bce59471-ccba-4e1e-989f-8b8c3d36b88b":{"parent":null,"children":["ebdba896-7155-42e3-a822-74f2a65b3066"]},"ebdba896-7155-42e3-a822-74f2a65b3066":{"parent":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"]},"externalIds":{}} \ No newline at end of file From edb3f298542422249e84c373fe82c985c145dcfa Mon Sep 17 00:00:00 2001 From: jacobjdavey Date: Sun, 18 Feb 2024 15:47:47 -0600 Subject: [PATCH 03/14] Fixed env template --- .env.template | 8 ++++---- .nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json | 1 - .nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json | 1 - .nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json | 1 - .../processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json | 1 - .../processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json | 1 - .../processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json | 1 - .nyc_output/processinfo/index.json | 2 +- 8 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 .nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json delete mode 100644 .nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json delete mode 100644 .nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json delete mode 100644 .nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json delete mode 100644 .nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json delete mode 100644 .nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json diff --git a/.env.template b/.env.template index 5078518..9413042 100644 --- a/.env.template +++ b/.env.template @@ -1,4 +1,4 @@ -ENVIRONMENT=development -HOST=localhost -PORT=2301 -AIRTABLE_API_KEY=pat21OngEIQVVbm10.680845f23aba2dac3cc2599c830edc1fea4f1dc774312c8f909328da16b80f43 +ENVIRONMENT= +HOST= +PORT= +AIRTABLE_API_KEY= diff --git a/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json b/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json deleted file mode 100644 index 47cab86..0000000 --- a/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":26},"end":{"line":26,"column":69}},"26":{"start":{"line":27,"column":22},"end":{"line":27,"column":61}},"27":{"start":{"line":28,"column":21},"end":{"line":28,"column":59}},"28":{"start":{"line":29,"column":20},"end":{"line":29,"column":48}},"29":{"start":{"line":30,"column":15},"end":{"line":30,"column":44}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":24}},"31":{"start":{"line":32,"column":0},"end":{"line":145,"column":3}},"32":{"start":{"line":33,"column":4},"end":{"line":87,"column":7}},"33":{"start":{"line":34,"column":28},"end":{"line":34,"column":74}},"34":{"start":{"line":35,"column":31},"end":{"line":35,"column":78}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":71}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":106}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":98}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":104}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":108}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":134}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":98}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":102}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":104}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":108}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":92}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":110}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":110}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":126}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":128}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":102}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":114}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":98}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":134}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":106}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":114}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":116}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":102}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":86}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":94}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":108}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":106}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":136}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":88}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":102}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":102}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":108}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":110}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":126}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":102}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":136}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":118}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":118}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":116}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":132}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":140}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":140}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":138}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":116}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":120}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":98}},"84":{"start":{"line":85,"column":8},"end":{"line":85,"column":110}},"85":{"start":{"line":86,"column":8},"end":{"line":86,"column":100}},"86":{"start":{"line":88,"column":4},"end":{"line":114,"column":7}},"87":{"start":{"line":89,"column":24},"end":{"line":89,"column":66}},"88":{"start":{"line":90,"column":27},"end":{"line":90,"column":68}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":63}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":81}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":78}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":80}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":110}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":106}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":100}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":86}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":106}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":102}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":84}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":88}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":94}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":102}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":92}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":108}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":124}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":130}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":120}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":116}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":96}},"110":{"start":{"line":112,"column":8},"end":{"line":112,"column":110}},"111":{"start":{"line":113,"column":8},"end":{"line":113,"column":100}},"112":{"start":{"line":115,"column":4},"end":{"line":144,"column":7}},"113":{"start":{"line":116,"column":30},"end":{"line":116,"column":72}},"114":{"start":{"line":117,"column":33},"end":{"line":117,"column":79}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":75}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":93}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":86}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":104}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":102}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":110}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":90}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":90}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":92}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":88}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":116}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":112}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":96}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":116}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":134}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":114}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":96}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":120}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":116}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":138}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":106}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":102}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":160}},"139":{"start":{"line":142,"column":8},"end":{"line":142,"column":84}},"140":{"start":{"line":143,"column":8},"end":{"line":143,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":27},"end":{"line":145,"column":1}},"line":32},"7":{"name":"(anonymous_7)","decl":{"start":{"line":33,"column":39},"end":{"line":33,"column":40}},"loc":{"start":{"line":33,"column":45},"end":{"line":87,"column":5}},"line":33},"8":{"name":"(anonymous_8)","decl":{"start":{"line":88,"column":42},"end":{"line":88,"column":43}},"loc":{"start":{"line":88,"column":48},"end":{"line":114,"column":5}},"line":88},"9":{"name":"(anonymous_9)","decl":{"start":{"line":115,"column":41},"end":{"line":115,"column":42}},"loc":{"start":{"line":115,"column":47},"end":{"line":144,"column":5}},"line":115}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":100,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1},"f":{"0":10,"1":100,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAA+D;AAC/D,8DAA6D;AAC7D,4DAA4D;AAC5D,iDAI2B;AAC3B,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,WAAW,GAAsB,IAAA,uCAA2B,GAAE,CAAC;QACrE,MAAM,cAAc,GAAyB,IAAA,6BAAW,EAAC,WAAW,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACnD,IAAA,aAAM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{ trimRequest } from '../util/trimming/flight-requests';\nimport { trimFlightLeg } from '../util/trimming/flight-legs';\nimport { trimPassenger } from '../util/trimming/passengers';\nimport {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields['Passenger Names (from All Flight Legs)']).to.equal(\n trimmedPassenger['Passenger Names (from All Flight Legs)']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c6f34d73a4700e1e8312c234cc1d1bb3f2d70e10","contentHash":"2792aeedccb073e0c2f141947dd2646004a6008211a1b8292154d7463b141e57"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":20},"end":{"line":61,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":65},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":27},"end":{"line":59,"column":5}},"6":{"start":{"line":60,"column":4},"end":{"line":60,"column":26}},"7":{"start":{"line":62,"column":0},"end":{"line":62,"column":34}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":20},"end":{"line":4,"column":21}},"loc":{"start":{"line":4,"column":33},"end":{"line":61,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts"],"names":[],"mappings":";;;AAGO,MAAM,WAAW,GAAG,CAAC,OAA0B,EAAwB,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,cAAc,GAAyB;QAC3C,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,WAA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E,MAAM,CAAC,aAAa,CAAC;QACpC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,CAAC;QAC5D,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,8BAA8B,EAAE,MAAM,CAAC,8BAA8B,CAAC;QACtE,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,CAAC;QACtD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;KACnC,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA5DW,QAAA,WAAW,eA4DtB","sourcesContent":["import type { FlightRequestData } from '../../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bc520d2d596e15fc30a0167ecb05712205c25c6c","contentHash":"d3d50c11d1a91b9757c5569b0f19650ed4428dfa62dff5649d84e84957e4ea2e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":44},"end":{"line":6,"column":50}},"5":{"start":{"line":7,"column":23},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":35},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,OAAsB,EAAoB,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE/C,MAAM,UAAU,GAAqB;QACnC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../../interfaces/legs/trimmed-flight-leg.interface';\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"457d848713bbc65e50d8abc11e532a2268cf72d0","contentHash":"a46a8687ad3590299a872bb6385ba6335cef4490a56b4c66eef79677e0dba119"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":36,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":34,"column":5}},"6":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"7":{"start":{"line":37,"column":0},"end":{"line":37,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":36,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,KAAK;QACZ,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,2BAA2B,EAAE,MAAM,CAAC,2BAA2B,CAAC;QAChE,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,SAAS,EAAE,SAAS;QACpB,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,wCAAwC,EAAE,MAAM,CAAC,wCAAwC,CAAC;QAC1F,GAAG,EAAE,GAAG;QACR,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;KACrC,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AApCW,QAAA,aAAa,iBAoCxB","sourcesContent":["import type { PassengerData } from '../../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../../interfaces/passenger/trimmed-passenger.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n 'Passenger Names (from All Flight Legs)': fields['Passenger Names (from All Flight Legs)'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9e019e3a38e61a4a141889aa5575da220146473a","contentHash":"40c6f89679be4ba9e4027026395b9dae86768ed924d7fecb5efb85afab12eba6"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC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aAAK,CAAC,MAAM,CAAC,GAAG,CAAC;YAClC,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,EAAE;SACR,CAAC,EACF,oBAAoB,EAAE,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,EAC9C,mBAAmB,EAAE,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAC5C,cAAc,EAAE,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EACvC,OAAO,EAAE,aAAK,CAAC,OAAO,CAAC,aAAa,CAClC,oBAAQ,EACR,aAAK,CAAC,MAAM,CAAC,GAAG,CAAC;YACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;SACP,CAAC,CACH,EACD,yBAAyB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAC1E,uBAAuB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"46":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"47":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"48":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":56}},"50":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":45},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":39},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":47},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"loc":{"start":{"line":59,"column":31},"end":{"line":62,"column":9}},"line":59},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":39},"end":{"line":64,"column":40}},"loc":{"start":{"line":64,"column":47},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":31},"end":{"line":72,"column":9}},"line":69}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":2,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"f":{"0":10,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;aAClB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2301, () => {\n console.log('Mock server listening on port 2301');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST /bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2e883902345179d9034f50392f72183e3f64a93c","contentHash":"36149bc236f26200721bd5de6145cf08bcf089529b779d7213c7c8e2fcba661f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":22},"end":{"line":7,"column":71}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":61}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":17},"end":{"line":12,"column":51}},"10":{"start":{"line":13,"column":15},"end":{"line":13,"column":47}},"11":{"start":{"line":14,"column":24},"end":{"line":42,"column":1}},"12":{"start":{"line":15,"column":16},"end":{"line":15,"column":40}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":58}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":38}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":35}},"16":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"17":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"18":{"start":{"line":25,"column":4},"end":{"line":25,"column":37}},"19":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"20":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"21":{"start":{"line":28,"column":8},"end":{"line":28,"column":39}},"22":{"start":{"line":31,"column":8},"end":{"line":31,"column":39}},"23":{"start":{"line":34,"column":4},"end":{"line":39,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":35,"column":33}},"25":{"start":{"line":36,"column":8},"end":{"line":38,"column":81}},"26":{"start":{"line":41,"column":4},"end":{"line":41,"column":44}},"27":{"start":{"line":43,"column":0},"end":{"line":43,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":30},"end":{"line":42,"column":1}},"line":14},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":12},"end":{"line":34,"column":13}},"loc":{"start":{"line":34,"column":33},"end":{"line":39,"column":5}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21},"4":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}],"line":27},"5":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":81}},"type":"binary-expr","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":81}}],"line":27}},"s":{"0":1,"1":7,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":3,"13":3,"14":3,"15":3,"16":3,"17":0,"18":3,"19":3,"20":3,"21":0,"22":3,"23":3,"24":0,"25":0,"26":3,"27":1},"f":{"0":7,"1":3,"2":0},"b":{"0":[1,1,1],"1":[0,7],"2":[7,7],"3":[0,3],"4":[0,3],"5":[3,3]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAkD;AAClD,sDAA8B;AAC9B,gDAAwB;AACxB,8DAAqC;AACrC,oDAA4B;AAC5B,oDAA4B;AAE5B,gDAAwB;AAEjB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,+CAA+C;IAC3F,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC7E,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;IAED,6DAA6D;IAC7D,GAAG,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,CAAC,EAAE,GAAQ,EAAE,EAAE,EAAE,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,GAAG;aACA,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,oBAAoB;IACpB,OAAO,cAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAjCW,QAAA,eAAe,mBAiC1B","sourcesContent":["import exampleRouter from '../routes/Test.routes';\nimport express from 'express';\nimport cors from 'cors';\nimport bodyparser from 'body-parser';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nimport http from 'http';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(bodyparser.json({ limit: '5mb' })); //file size limit specification to receive PDFs\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'development') {\n app.use(exampleRouter);\n } else {\n app.use(exampleRouter);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n app.use((err: any, _, res: any, __) => {\n console.error(err.stack);\n res\n .status(403)\n .send({ message: \"You're not authorized to access this endpoint!\" });\n });\n\n // Create the server\n return http.createServer(app);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"47f63148ead59f979b85a1ede425ee11cf17582e","contentHash":"49bd8b66952e0c8a9cd98dd19934c104f0d22071d08c91d82b0b2c597cdbd40e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"3":{"start":{"line":6,"column":29},"end":{"line":6,"column":89}},"4":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"5":{"start":{"line":8,"column":31},"end":{"line":8,"column":93}},"6":{"start":{"line":9,"column":18},"end":{"line":9,"column":53}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":48}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":75}},"9":{"start":{"line":13,"column":0},"end":{"line":13,"column":79}},"10":{"start":{"line":14,"column":0},"end":{"line":14,"column":72}},"11":{"start":{"line":15,"column":0},"end":{"line":15,"column":82}},"12":{"start":{"line":16,"column":0},"end":{"line":16,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{"0":1},"b":{"0":[1,1,1],"1":[0,1],"2":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts"],"names":[],"mappings":";;;;AAAA,gGAA6F;AAC7F,0FAAuF;AACvF,8FAA2F;AAC3F,8FAA2F;AAC3F,sDAA8B;AAE9B,MAAM,aAAa,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEvC,qBAAqB;AACrB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,6CAAqB,CAAC,CAAC;AACnD,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,2CAAoB,CAAC,CAAC;AACxD,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,2CAAoB,CAAC,CAAC;AACjD,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,uCAAkB,CAAC,CAAC;AAE7D,iBAAS,aAAa,CAAC","sourcesContent":["import { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport express from 'express';\n\nconst exampleRouter = express.Router();\n\n/* Test Controller */\nexampleRouter.get('/query', queryParameterExample);\nexampleRouter.get('/path/:value', pathParameterExample);\nexampleRouter.get('/body', bodyParameterExample);\nexampleRouter.get('/retrievePassengers', retrievePassengers);\n\nexport = exampleRouter;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b3d98a2caac7f728ac9ebf8787fc5b08e5c88c4d","contentHash":"6edfa5a4123ea38baa847d6b94cdcc9aaeef5b8cfaae82c34375b95e87c139be"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":19},"end":{"line":16,"column":55}},"17":{"start":{"line":17,"column":17},"end":{"line":17,"column":51}},"18":{"start":{"line":18,"column":0},"end":{"line":18,"column":26}},"19":{"start":{"line":21,"column":27},"end":{"line":65,"column":2}},"20":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":4},"end":{"line":22,"column":46}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":35}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":68}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":73}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":27},"end":{"line":21,"column":28}},"loc":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"line":21},"9":{"name":"(anonymous_9)","decl":{"start":{"line":21,"column":75},"end":{"line":21,"column":76}},"loc":{"start":{"line":21,"column":88},"end":{"line":65,"column":1}},"line":21},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,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oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAnDW,QAAA,kBAAkB,sBAmD7B","sourcesContent":["import Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n console.log(process.env.AIRTABLE_API_KEY);\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n console.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n console.log('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n console.log('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fe1ade0a5d53988d69f6cc8be0f95e299471388c","contentHash":"80abbd2773c85413f65141a8ae75298fcc27abd3a898d5e2bb9b9d65b77cb9b8"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":73,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":141}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":72,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":71,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":33},"end":{"line":53,"column":34}},"loc":{"start":{"line":53,"column":39},"end":{"line":73,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":66},"end":{"line":54,"column":67}},"loc":{"start":{"line":54,"column":74},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":61},"end":{"line":64,"column":62}},"loc":{"start":{"line":64,"column":69},"end":{"line":72,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":3,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1},"f":{"0":11,"1":3,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,WAAW,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2303, () => {\n console.log('Mock server listening on port 2303');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"dcededb0f8a75ca7d6a68ef7e2e980092f50ff2e","contentHash":"59c36e22430a03463b966670753b5817cc5d15e81c2974c67a4058b03e8f086d"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":142}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":70}},"52":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":34},"end":{"line":53,"column":35}},"loc":{"start":{"line":53,"column":40},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":67},"end":{"line":54,"column":68}},"loc":{"start":{"line":54,"column":75},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":62},"end":{"line":64,"column":63}},"loc":{"start":{"line":64,"column":70},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":72,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":4,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1},"f":{"0":11,"1":4,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,0DAA0D,EAAE,IAAI,CAAC,EAAE;QACpE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,iBAAiB,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,0FAA0F,CAC3F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,IAAI,CAAC,EAAE;QAC/D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,QAAQ,CAAC;aACb,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2302, () => {\n console.log('Mock server listening on port 2302');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2d0d4e29bea716c5805b0f2b2fa8721c970ba6b0","contentHash":"428ae023c5eaa79f800693f741dc8b4ff9e721692bf8ee5c5e205004d3807c5c"}} \ No newline at end of file diff --git a/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json b/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json deleted file mode 100644 index 33d487e..0000000 --- a/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":73,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":62,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":61,"column":11}},"44":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":19}},"46":{"start":{"line":63,"column":4},"end":{"line":72,"column":7}},"47":{"start":{"line":64,"column":8},"end":{"line":71,"column":11}},"48":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}},"50":{"start":{"line":75,"column":0},"end":{"line":96,"column":3}},"51":{"start":{"line":76,"column":4},"end":{"line":85,"column":7}},"52":{"start":{"line":77,"column":8},"end":{"line":84,"column":11}},"53":{"start":{"line":81,"column":12},"end":{"line":81,"column":56}},"54":{"start":{"line":82,"column":12},"end":{"line":82,"column":142}},"55":{"start":{"line":83,"column":12},"end":{"line":83,"column":19}},"56":{"start":{"line":86,"column":4},"end":{"line":95,"column":7}},"57":{"start":{"line":87,"column":8},"end":{"line":94,"column":11}},"58":{"start":{"line":91,"column":12},"end":{"line":91,"column":56}},"59":{"start":{"line":92,"column":12},"end":{"line":92,"column":70}},"60":{"start":{"line":93,"column":12},"end":{"line":93,"column":19}},"61":{"start":{"line":98,"column":0},"end":{"line":118,"column":3}},"62":{"start":{"line":99,"column":4},"end":{"line":108,"column":7}},"63":{"start":{"line":100,"column":8},"end":{"line":107,"column":11}},"64":{"start":{"line":104,"column":12},"end":{"line":104,"column":56}},"65":{"start":{"line":105,"column":12},"end":{"line":105,"column":141}},"66":{"start":{"line":106,"column":12},"end":{"line":106,"column":19}},"67":{"start":{"line":109,"column":4},"end":{"line":117,"column":7}},"68":{"start":{"line":110,"column":8},"end":{"line":116,"column":11}},"69":{"start":{"line":114,"column":12},"end":{"line":114,"column":56}},"70":{"start":{"line":115,"column":12},"end":{"line":115,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":73,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":47},"end":{"line":62,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":61,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":63,"column":39},"end":{"line":63,"column":40}},"loc":{"start":{"line":63,"column":47},"end":{"line":72,"column":5}},"line":63},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68},"15":{"name":"(anonymous_15)","decl":{"start":{"line":75,"column":34},"end":{"line":75,"column":35}},"loc":{"start":{"line":75,"column":40},"end":{"line":96,"column":1}},"line":75},"16":{"name":"(anonymous_16)","decl":{"start":{"line":76,"column":67},"end":{"line":76,"column":68}},"loc":{"start":{"line":76,"column":75},"end":{"line":85,"column":5}},"line":76},"17":{"name":"(anonymous_17)","decl":{"start":{"line":80,"column":17},"end":{"line":80,"column":18}},"loc":{"start":{"line":80,"column":31},"end":{"line":84,"column":9}},"line":80},"18":{"name":"(anonymous_18)","decl":{"start":{"line":86,"column":62},"end":{"line":86,"column":63}},"loc":{"start":{"line":86,"column":70},"end":{"line":95,"column":5}},"line":86},"19":{"name":"(anonymous_19)","decl":{"start":{"line":90,"column":17},"end":{"line":90,"column":18}},"loc":{"start":{"line":90,"column":31},"end":{"line":94,"column":9}},"line":90},"20":{"name":"(anonymous_20)","decl":{"start":{"line":98,"column":33},"end":{"line":98,"column":34}},"loc":{"start":{"line":98,"column":39},"end":{"line":118,"column":1}},"line":98},"21":{"name":"(anonymous_21)","decl":{"start":{"line":99,"column":66},"end":{"line":99,"column":67}},"loc":{"start":{"line":99,"column":74},"end":{"line":108,"column":5}},"line":99},"22":{"name":"(anonymous_22)","decl":{"start":{"line":103,"column":17},"end":{"line":103,"column":18}},"loc":{"start":{"line":103,"column":31},"end":{"line":107,"column":9}},"line":103},"23":{"name":"(anonymous_23)","decl":{"start":{"line":109,"column":61},"end":{"line":109,"column":62}},"loc":{"start":{"line":109,"column":69},"end":{"line":117,"column":5}},"line":109},"24":{"name":"(anonymous_24)","decl":{"start":{"line":113,"column":17},"end":{"line":113,"column":18}},"loc":{"start":{"line":113,"column":31},"end":{"line":116,"column":9}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":9,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1},"f":{"0":10,"1":9,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,YAAY,CAAC;aACjB,IAAI,CAAC,EAAE,IAAI,EAAE,MAA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CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1234, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/test/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/test/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/test/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/test/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/test/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"68aac90603d11bb0a88dc872be00b23f0e274fd3","contentHash":"bde9963c3c74fb75a7081a8e66ac7f169076464b9273084c0872147c21d02e49"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":17},"end":{"line":7,"column":61}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":17},"end":{"line":10,"column":51}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":24},"end":{"line":28,"column":1}},"10":{"start":{"line":13,"column":16},"end":{"line":13,"column":40}},"11":{"start":{"line":15,"column":4},"end":{"line":15,"column":38}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"13":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"14":{"start":{"line":19,"column":4},"end":{"line":19,"column":32}},"15":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"16":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"17":{"start":{"line":25,"column":4},"end":{"line":25,"column":31}},"18":{"start":{"line":27,"column":4},"end":{"line":27,"column":15}},"19":{"start":{"line":29,"column":0},"end":{"line":29,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":30},"end":{"line":28,"column":1}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21}},"s":{"0":1,"1":5,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":0,"17":2,"18":2,"19":1},"f":{"0":5,"1":2},"b":{"0":[1,1,1],"1":[1,4],"2":[5,5],"3":[0,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,sDAA8B;AAC9B,gDAAwB;AACxB,oDAA4B;AAC5B,oDAA4B;AAErB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,SAAS;IACT,IAAA,gBAAM,EAAC,GAAG,CAAC,CAAC;IAEZ,oBAAoB;IACpB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B","sourcesContent":["import routes from '../routes/routes';\nimport express from 'express';\nimport cors from 'cors';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Routes\n routes(app);\n\n // Create the server\n return app;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"574b7cf13a61b53a5f8abcf5e433444c01dda466","contentHash":"d9e380ff3ba88f716bb0d72691e4444ce0c65d32790f5eb1ac457528a835466c"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":31},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":35},"end":{"line":4,"column":85}},"3":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"4":{"start":{"line":6,"column":31},"end":{"line":6,"column":93}},"5":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"6":{"start":{"line":8,"column":29},"end":{"line":8,"column":89}},"7":{"start":{"line":9,"column":26},"end":{"line":9,"column":67}},"8":{"start":{"line":10,"column":15},"end":{"line":35,"column":1}},"9":{"start":{"line":12,"column":4},"end":{"line":12,"column":61}},"10":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"11":{"start":{"line":14,"column":4},"end":{"line":14,"column":53}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":74}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":78}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":71}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":81}},"16":{"start":{"line":21,"column":4},"end":{"line":21,"column":75}},"17":{"start":{"line":22,"column":4},"end":{"line":22,"column":71}},"18":{"start":{"line":23,"column":4},"end":{"line":23,"column":68}},"19":{"start":{"line":24,"column":4},"end":{"line":24,"column":70}},"20":{"start":{"line":26,"column":4},"end":{"line":26,"column":82}},"21":{"start":{"line":27,"column":4},"end":{"line":27,"column":78}},"22":{"start":{"line":28,"column":4},"end":{"line":28,"column":75}},"23":{"start":{"line":29,"column":4},"end":{"line":29,"column":77}},"24":{"start":{"line":31,"column":4},"end":{"line":33,"column":7}},"25":{"start":{"line":32,"column":8},"end":{"line":32,"column":52}},"26":{"start":{"line":34,"column":4},"end":{"line":34,"column":15}},"27":{"start":{"line":36,"column":0},"end":{"line":36,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":15},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":35,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":28},"end":{"line":12,"column":29}},"loc":{"start":{"line":12,"column":40},"end":{"line":12,"column":59}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":12},"end":{"line":31,"column":13}},"loc":{"start":{"line":31,"column":24},"end":{"line":33,"column":5}},"line":31}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":2,"10":0,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":1,"26":2,"27":1},"f":{"0":2,"1":0,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts"],"names":[],"mappings":";;AAAA,8EAK6C;AAC7C,sFAKiD;AACjD,gGAA6F;AAC7F,8FAA2F;AAC3F,8FAA2F;AAC3F,0FAAuF;AACvF,oEAA4D;AAG5D,MAAM,MAAM,GAAG,CAAC,GAAY,EAAE,EAAE;IAC9B,cAAc;IACd,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC,CAAU,EAAE,GAAa,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAE5E,qBAAqB;IACrB,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAAU,CAAC,CAAC;IAE/B,qBAAqB;IACrB,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,6CAAqB,CAAC,CAAC;IAC9C,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,2CAAoB,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,2CAAoB,CAAC,CAAC;IAC5C,GAAG,CAAC,GAAG,CAAC,0BAA0B,EAAE,uCAAkB,CAAC,CAAC;IAExD,iCAAiC;IACjC,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,8CAAuB,CAAC,CAAC;IAChD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,uCAAgB,CAAC,CAAC;IAC5C,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,sCAAe,CAAC,CAAC;IACzC,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,sCAAe,CAAC,CAAC;IAE3C,sCAAsC;IACtC,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,sDAA2B,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,+CAAoB,CAAC,CAAC;IAC/C,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,8CAAmB,CAAC,CAAC;IAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,8CAAmB,CAAC,CAAC;IAE9C,MAAM;IACN,GAAG,CAAC,GAAG,CAAC,CAAC,CAAU,EAAE,GAAa,EAAE,EAAE;QACpC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["import {\n getAllPassengersForUser,\n getPassengerById,\n createPassenger,\n updatePassenger,\n} from '../controllers/Passenger.controller';\nimport {\n getAllFlightRequestsForUser,\n getFlightRequestById,\n createFlightRequest,\n updateFlightRequest,\n} from '../controllers/FlightRequest.controller';\nimport { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { createUser } from '../controllers/User.controller';\nimport type { Express, Request, Response } from 'express';\n\nconst routes = (app: Express) => {\n // healthcheck\n app.get('/healthcheck', (_: Request, res: Response) => res.sendStatus(200));\n\n /* User Controller */\n app.post('/user/', createUser);\n\n /* Test Controller */\n app.get('/test/query', queryParameterExample);\n app.get('/test/path/:value', pathParameterExample);\n app.get('/test/body', bodyParameterExample);\n app.get('/test/retrievePassengers', retrievePassengers);\n\n /* Passenger Controller Routes */\n app.get('/passenger/', getAllPassengersForUser);\n app.get('/passenger/:id', getPassengerById);\n app.post('/passenger/', createPassenger);\n app.put('/passenger/:id', updatePassenger);\n\n /* Flight Request Controller Routes */\n app.get('/requests/', getAllFlightRequestsForUser);\n app.get('/requests/:id', getFlightRequestById);\n app.post('/requests/', createFlightRequest);\n app.put('/requests/:id', updateFlightRequest);\n\n // 404\n app.use((_: Request, res: Response) => {\n res.status(404).send('404: Page not found');\n });\n\n return app;\n};\n\nexport default routes;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6b984f75542f69cd4da4280b8cc5dae2d432221f","contentHash":"c462c30737e726ba9ba119403edd39f7858259cd2094bf3ccecc92d7a680d6d7"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":120}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":32},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":23},"end":{"line":32,"column":99}},"18":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":37}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":58}},"21":{"start":{"line":50,"column":25},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":22},"end":{"line":54,"column":64}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":36}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":44}},"26":{"start":{"line":71,"column":24},"end":{"line":82,"column":2}},"27":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"28":{"start":{"line":79,"column":22},"end":{"line":79,"column":64}},"29":{"start":{"line":81,"column":4},"end":{"line":81,"column":36}},"30":{"start":{"line":83,"column":0},"end":{"line":83,"column":42}},"31":{"start":{"line":96,"column":24},"end":{"line":107,"column":2}},"32":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"33":{"start":{"line":104,"column":22},"end":{"line":104,"column":64}},"34":{"start":{"line":106,"column":4},"end":{"line":106,"column":36}},"35":{"start":{"line":108,"column":0},"end":{"line":108,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":32},"end":{"line":28,"column":33}},"loc":{"start":{"line":28,"column":46},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":80},"end":{"line":28,"column":81}},"loc":{"start":{"line":28,"column":93},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":50},"end":{"line":32,"column":51}},"loc":{"start":{"line":32,"column":56},"end":{"line":32,"column":98}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":25},"end":{"line":50,"column":26}},"loc":{"start":{"line":50,"column":39},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":73},"end":{"line":50,"column":74}},"loc":{"start":{"line":50,"column":86},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":38},"end":{"line":82,"column":2}},"line":71},"13":{"name":"(anonymous_13)","decl":{"start":{"line":71,"column":72},"end":{"line":71,"column":73}},"loc":{"start":{"line":71,"column":85},"end":{"line":82,"column":1}},"line":71},"14":{"name":"(anonymous_14)","decl":{"start":{"line":96,"column":24},"end":{"line":96,"column":25}},"loc":{"start":{"line":96,"column":38},"end":{"line":107,"column":2}},"line":96},"15":{"name":"(anonymous_15)","decl":{"start":{"line":96,"column":72},"end":{"line":96,"column":73}},"loc":{"start":{"line":96,"column":85},"end":{"line":107,"column":1}},"line":96}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger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AY,EAAE,GAAa,EAAE,EAAE;IACnE,gDAAgD;IAChD,qCAAqC;IAErC,+CAA+C;IAC/C,yBAAyB;IAEzB,wCAAwC;IACxC,MAAM;IAEN,0BAA0B;IAC1B,MAAM,SAAS,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAE5C,+BAA+B;IAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC,CAAA,CAAC;AAfW,QAAA,eAAe,mBAe1B","sourcesContent":["import { createTestPassengerData } from '../data/test-data';\nimport type { Request, Response } from 'express';\n\n/**\n * This function returns all passengers connected to a user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all passengers for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no passengers for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the passengers (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passengers for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllPassengersForUser = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of passengers\n const passengers = Array.from({ length: 10 }, () => createTestPassengerData());\n\n // return the passengers for the user\n res.status(200).send(passengers);\n};\n\n/**\n * This function returns a passenger for a given passengerId\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the passenger, if that fails return a 500 (hint, use try/catch)\n * If there is no passenger for the passengerId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the passenger (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getPassengerById = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function creates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to create the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the created passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createPassenger = async (req: Request, res: Response) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the created passenger\n res.status(200).send(passenger);\n};\n\n/**\n * This function updates a passenger for a given user\n *\n * Steps to complete:\n * 1. Get the passengerId from the query parameters, if it doesn't exist return a 400\n * 2. Get the passenger data from the request body, if it doesn't exist return a 400\n * 3. Make a call to AirTable to update the passenger, if that fails return a 500 (hint, use try/catch)\n * 4. Return the updated passenger\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updatePassenger = async (req: Request, res: Response) => {\n // get the passengerId from the query parameters\n // const { passengerId } = req.query;\n\n // get the passenger data from the request body\n // const data = req.body;\n\n // validate the passenger data using Joi\n // ...\n\n // create a fake passenger\n const passenger = createTestPassengerData();\n\n // return the updated passenger\n res.status(200).send(passenger);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"207387e7759ab6124f3477b3c9064fac0f30a328","contentHash":"29b5200722f719916125a607b9531c65808ff02f92c0b30d4bcf408f08fe3548"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CACzC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACxD,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,uBACE,EAAE,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACvB,WAAW,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,EAC9C,MAAM,kBACJ,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBAC/B,SAAS;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AK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAC1E,uBAAuB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":136}},"14":{"start":{"line":13,"column":20},"end":{"line":13,"column":48}},"15":{"start":{"line":28,"column":36},"end":{"line":35,"column":2}},"16":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"17":{"start":{"line":32,"column":27},"end":{"line":32,"column":103}},"18":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":41}},"20":{"start":{"line":36,"column":0},"end":{"line":36,"column":66}},"21":{"start":{"line":50,"column":29},"end":{"line":57,"column":2}},"22":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"23":{"start":{"line":54,"column":26},"end":{"line":54,"column":68}},"24":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"25":{"start":{"line":58,"column":0},"end":{"line":58,"column":52}},"26":{"start":{"line":70,"column":28},"end":{"line":79,"column":2}},"27":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"28":{"start":{"line":76,"column":26},"end":{"line":76,"column":68}},"29":{"start":{"line":78,"column":4},"end":{"line":78,"column":40}},"30":{"start":{"line":80,"column":0},"end":{"line":80,"column":50}},"31":{"start":{"line":93,"column":28},"end":{"line":102,"column":2}},"32":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"33":{"start":{"line":99,"column":26},"end":{"line":99,"column":68}},"34":{"start":{"line":101,"column":4},"end":{"line":101,"column":40}},"35":{"start":{"line":103,"column":0},"end":{"line":103,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":28,"column":36},"end":{"line":28,"column":37}},"loc":{"start":{"line":28,"column":50},"end":{"line":35,"column":2}},"line":28},"8":{"name":"(anonymous_8)","decl":{"start":{"line":28,"column":84},"end":{"line":28,"column":85}},"loc":{"start":{"line":28,"column":97},"end":{"line":35,"column":1}},"line":28},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":54},"end":{"line":32,"column":55}},"loc":{"start":{"line":32,"column":60},"end":{"line":32,"column":102}},"line":32},"10":{"name":"(anonymous_10)","decl":{"start":{"line":50,"column":29},"end":{"line":50,"column":30}},"loc":{"start":{"line":50,"column":43},"end":{"line":57,"column":2}},"line":50},"11":{"name":"(anonymous_11)","decl":{"start":{"line":50,"column":77},"end":{"line":50,"column":78}},"loc":{"start":{"line":50,"column":90},"end":{"line":57,"column":1}},"line":50},"12":{"name":"(anonymous_12)","decl":{"start":{"line":70,"column":28},"end":{"line":70,"column":29}},"loc":{"start":{"line":70,"column":42},"end":{"line":79,"column":2}},"line":70},"13":{"name":"(anonymous_13)","decl":{"start":{"line":70,"column":76},"end":{"line":70,"column":77}},"loc":{"start":{"line":70,"column":89},"end":{"line":79,"column":1}},"line":70},"14":{"name":"(anonymous_14)","decl":{"start":{"line":93,"column":28},"end":{"line":93,"column":29}},"loc":{"start":{"line":93,"column":42},"end":{"line":102,"column":2}},"line":93},"15":{"name":"(anonymous_15)","decl":{"start":{"line":93,"column":76},"end":{"line":93,"column":77}},"loc":{"start":{"line":93,"column":89},"end":{"line":102,"column":1}},"line":93}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":1,"14":1,"15":1,"16":0,"17":0,"18":0,"19":0,"20":1,"21":1,"22":0,"23":0,"24":0,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":0,"33":0,"34":0,"35":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA4D;AAG5D;;;;;;;;;;;;;GAaG;AACI,MAAM,2BAA2B,GAAG,CACzC,GAAY,EACZ,GAAa,EACb,EAAE;IACF,2CAA2C;IAC3C,gCAAgC;IAEhC,yCAAyC;IACzC,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CACrD,IAAA,mCAAuB,GAAE,CAC1B,CAAC;IAEF,0CAA0C;IAC1C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC,CAAA,CAAC;AAdW,QAAA,2BAA2B,+BActC;AAEF;;;;;;;;;;;;GAYG;AACI,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,oDAAoD;IACpD,yCAAyC;IAEzC,+BAA+B;IAC/B,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AATW,QAAA,oBAAoB,wBAS/B;AAEF;;;;;;;;;;GAUG;AACI,MAAM,mBAAmB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACvE,oDAAoD;IACpD,yBAAyB;IAEzB,uCAAuC;IACvC,MAAM;IAEN,+BAA+B;IAC/B,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AAZW,QAAA,mBAAmB,uBAY9B;AAEF;;;;;;;;;;;GAWG;AACI,MAAM,mBAAmB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACvE,mDAAmD;IACnD,0CAA0C;IAE1C,uCAAuC;IACvC,MAAM;IAEN,kDAAkD;IAClD,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,4BAA4B;IAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAA,CAAC;AAZW,QAAA,mBAAmB,uBAY9B","sourcesContent":["import { createTestFlightLegData } from '../data/test-data';\nimport type { Request, Response } from 'express';\n\n/**\n * This function returns all flight requests for a given user\n *\n * Steps to complete:\n * 1. Get the userId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get all flight requests for the user, if that fails return a 500 (hint, use try/catch)\n * If there are no flight requests for the user return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight requests for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getAllFlightRequestsForUser = async (\n req: Request,\n res: Response\n) => {\n // get the userId from the query parameters\n // const { userId } = req.query;\n\n // create a fake array of flight requests\n const flightRequests = Array.from({ length: 10 }, () =>\n createTestFlightLegData()\n );\n\n // return the flight requests for the user\n res.status(200).send(flightRequests);\n};\n\n/**\n * This function returns a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the query parameters, if it doesn't exist return a 400\n * 2. Make a call to AirTable to get the flight request, if that fails return a 500 (hint, use try/catch)\n * If there is no flight request for the flightRequestId return a 400. (hint: use the AirTable API, see TestControllers/retrievePassengers.ts for an example)\n * 3. Remove any unnecessary data from the flight requests (there is a lot of data in the AirTable response we don't need)\n * 4. Return the flight request\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const getFlightRequestById = async (req: Request, res: Response) => {\n // get the flightRequestId from the query parameters\n // const { flightRequestId } = req.query;\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function creates a flight request for a given user\n *\n * Steps to complete:\n * 1. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 2. Create a fake flight request by making a call to JotForm. If that fails return a 500 (hint, use try/catch)\n * 3. Return the flight request that was created\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createFlightRequest = async (req: Request, res: Response) => {\n // get the flight request data from the request body\n // const data = req.body;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n\n/**\n * This function updates a flight request for a given flightRequestId\n *\n * Steps to complete:\n * 1. Get the flightRequestId from the path parameters, if it doesn't exist return a 400\n * 2. Use Joi to validate the request body, if it doesn't exist or is invalid return a 400\n * 3. Update the flight request by making a call to AirTable. If that fails return a 500 (hint, use try/catch)\n * 4. Return the entire flight request that was updated, once again removing any unnecessary data\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const updateFlightRequest = async (req: Request, res: Response) => {\n // get the flightRequestId from the path parameters\n // const { flightRequestId } = req.params;\n\n // use Joi to validate the request body\n // ...\n\n // create a fake flight request that was \"updated\"\n const flightRequest = createTestFlightLegData();\n\n // return the flight request\n res.status(200).send(flightRequest);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"805f4b218f28c900b570f6af56dd4e1b345bbb6d","contentHash":"a7712c10e099d7f7c022c35acafcbda0b210cd43b7d8e6e481001e125ad18044"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":17},"end":{"line":16,"column":62}},"17":{"start":{"line":17,"column":19},"end":{"line":17,"column":55}},"18":{"start":{"line":18,"column":17},"end":{"line":18,"column":51}},"19":{"start":{"line":19,"column":0},"end":{"line":19,"column":26}},"20":{"start":{"line":22,"column":27},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":44}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":78}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":83}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":22,"column":27},"end":{"line":22,"column":28}},"loc":{"start":{"line":22,"column":41},"end":{"line":65,"column":2}},"line":22},"9":{"name":"(anonymous_9)","decl":{"start":{"line":22,"column":75},"end":{"line":22,"column":76}},"loc":{"start":{"line":22,"column":88},"end":{"line":65,"column":1}},"line":22},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":3,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":3,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[1,2],"7":[3,3],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuC;AACvC,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,gBAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;oBAC9B,CAAC,CAAC,EAAE,CACO,CAAC;gBAChB,gBAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBACF,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACpD,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAC9B,CAAC,CAAC,sCAAsC;4BACzC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAChC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,gBAAM,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAjDW,QAAA,kBAAkB,sBAiD7B","sourcesContent":["import logger from '../../util/logger';\nimport Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n logger.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n logger.info('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n logger.info('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5301b8c2516ef55365843237d90cbab3479044a1","contentHash":"7cfacc2d96cccfb3fe4e2771ed27f64c80b69c1e1861dc89b697829fe430e75a"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":15},"end":{"line":6,"column":47}},"4":{"start":{"line":7,"column":16},"end":{"line":7,"column":49}},"5":{"start":{"line":8,"column":12},"end":{"line":20,"column":2}},"6":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"7":{"start":{"line":21,"column":0},"end":{"line":21,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":15},"end":{"line":19,"column":16}},"loc":{"start":{"line":19,"column":21},"end":{"line":19,"column":67}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":2,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":2,"1":1},"b":{"0":[1,1,1],"1":[0,2],"2":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,kDAA0B;AAE1B,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC;IACjB,IAAI,EAAE;QACJ,GAAG,EAAE,KAAK;KACX;IACD,SAAS,EAAE;QACT,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,cAAc;SACvB;KACF;IACD,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,IAAA,eAAK,GAAE,CAAC,MAAM,EAAE,GAAG;CACjD,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC","sourcesContent":["import logger from 'pino';\nimport dayjs from 'dayjs';\n\nconst log = logger({\n base: {\n pid: false,\n },\n transport: {\n target: 'pino-pretty',\n options: {\n colorize: true,\n ignore: 'pid,hostname',\n },\n },\n timestamp: () => `,\"time\":\"${dayjs().format()}\"`,\n});\n\nexport default log;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"232d04c895b71e3c1ae5fbb4aaa0fb2319d76217","contentHash":"5697787bb4d9cc7c141097ce4a316c410f0466c1d1368a97d88101583d3e8b12"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":28}},"16":{"start":{"line":16,"column":15},"end":{"line":16,"column":38}},"17":{"start":{"line":17,"column":19},"end":{"line":17,"column":55}},"18":{"start":{"line":18,"column":14},"end":{"line":18,"column":45}},"19":{"start":{"line":32,"column":19},"end":{"line":63,"column":2}},"20":{"start":{"line":32,"column":33},"end":{"line":63,"column":2}},"21":{"start":{"line":34,"column":19},"end":{"line":38,"column":6}},"22":{"start":{"line":40,"column":22},"end":{"line":40,"column":47}},"23":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":55}},"25":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"26":{"start":{"line":47,"column":28},"end":{"line":47,"column":111}},"27":{"start":{"line":48,"column":17},"end":{"line":50,"column":32}},"28":{"start":{"line":51,"column":22},"end":{"line":55,"column":14}},"29":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"30":{"start":{"line":58,"column":8},"end":{"line":58,"column":59}},"31":{"start":{"line":60,"column":4},"end":{"line":62,"column":55}},"32":{"start":{"line":64,"column":0},"end":{"line":64,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":33},"end":{"line":63,"column":2}},"line":32},"9":{"name":"(anonymous_9)","decl":{"start":{"line":32,"column":67},"end":{"line":32,"column":68}},"loc":{"start":{"line":32,"column":80},"end":{"line":63,"column":1}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":45,"column":5}},{"start":{"line":42,"column":4},"end":{"line":45,"column":5}}],"line":42},"9":{"loc":{"start":{"line":49,"column":16},"end":{"line":49,"column":50}},"type":"binary-expr","locations":[{"start":{"line":49,"column":16},"end":{"line":49,"column":44}},{"start":{"line":49,"column":48},"end":{"line":49,"column":50}}],"line":49},"10":{"loc":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},{"start":{"line":56,"column":4},"end":{"line":59,"column":5}}],"line":56}},"s":{"0":1,"1":2,"2":0,"3":2,"4":2,"5":2,"6":0,"7":0,"8":0,"9":0,"10":4,"11":2,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":2,"21":2,"22":2,"23":2,"24":0,"25":0,"26":2,"27":2,"28":2,"29":2,"30":1,"31":1,"32":1},"f":{"0":2,"1":2,"2":0,"3":2,"4":2,"5":0,"6":4,"7":2,"8":2,"9":2},"b":{"0":[1,1,1],"1":[2,0],"2":[2,2],"3":[2,2],"4":[2,2],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,2],"9":[2,0],"10":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,wDAAgC;AAChC,8CAAsB;AAItB;;;;;;;;;;;;GAYG;AACI,MAAM,UAAU,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IAC9D,uFAAuF;IACvF,MAAM,MAAM,GAAG,aAAG,CAAC,MAAM,CAAC;QACxB,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAC;IAEH,4BAA4B;IAC5B,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE5C,sDAAsD;IACtD,IAAI,KAAK,EAAE;QACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC/C,OAAO;KACR;IAED,4FAA4F;IAC5F,MAAM,eAAe,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC,SAAS,MACjE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CACjC,EAAE,CAAC;IAEH,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC;SACvC,MAAM,CAAC;QACN,eAAe,EAAE,qBAAqB,eAAe,GAAG;KACzD,CAAC;SACD,GAAG,EAAE,CAAC;IAET,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,uDAAuD;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;KACpD;IAED,OAAO,GAAG;SACP,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CAAC,IAAA,oBAAa,EAAC,SAAS,CAAC,CAAC,CAA6B,CAAC,CAAC,CAAC;AACnE,CAAC,CAAA,CAAC;AAxCW,QAAA,UAAU,cAwCrB","sourcesContent":["import { trimPassenger } from '../util/trim';\nimport Airtable from 'airtable';\nimport Joi from 'joi';\nimport type { Request, Response } from 'express';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\n\n/**\n * This function returns all passengers connected to a user\n *\n * Steps to complete:\n * 1. Get the first name, last name, and birthdate from the request body, if it doesn't exist return a 400\n * 2. Make a call to AirTable to check if the user exists, if that fails return a 500 (hint, use try/catch)\n * Another hint - we will be filtering by the \"Passenger ID\" field in the AirTable\n * 3. Remove any unnecessary data from the passenger (there is a lot of data in the AirTable response we don't need)\n * 4. Return the passengers for the user\n *\n * @param req - the request object\n * @param res - the response object\n */\nexport const createUser = async (req: Request, res: Response) => {\n // given a first name, last name, and birthdate, check if a user exists in the database\n const schema = Joi.object({\n firstName: Joi.string().required(),\n lastName: Joi.string().required(),\n birthdate: Joi.string().required(),\n });\n\n // validate the request body\n const { error } = schema.validate(req.body);\n\n // if the request body is invalid, send a 400 response\n if (error) {\n res.status(400).send(error.details[0].message);\n return;\n }\n\n // Format it like this: Cardenas, Jessica | 1989-11-10, birthday is a javascript date object\n const formattedUserId = `${req.body.lastName}, ${req.body.firstName} | ${\n req.body.birthdate.split('T')[0]\n }`;\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n const passenger = await base('Passengers')\n .select({\n filterByFormula: `{Passenger ID} = \"${formattedUserId}\"`,\n })\n .all();\n\n if (passenger.length === 0) {\n // return a message saying that the user does not exist\n return res.status(400).send('User does not exist');\n }\n\n return res\n .status(200)\n .send(trimPassenger(passenger[0] as unknown as PassengerData));\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e15cd9b4fe8ebb41461c8eabe5cca7780f49151d","contentHash":"3d9144209dc65035fa45c29cad03d29edba547a5843822a90d5f18f1f369cd3e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":22},"end":{"line":36,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":34,"column":5}},"6":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"7":{"start":{"line":37,"column":0},"end":{"line":37,"column":38}},"8":{"start":{"line":38,"column":20},"end":{"line":95,"column":1}},"9":{"start":{"line":39,"column":40},"end":{"line":39,"column":47}},"10":{"start":{"line":40,"column":65},"end":{"line":40,"column":71}},"11":{"start":{"line":41,"column":27},"end":{"line":93,"column":5}},"12":{"start":{"line":94,"column":4},"end":{"line":94,"column":26}},"13":{"start":{"line":96,"column":0},"end":{"line":96,"column":34}},"14":{"start":{"line":97,"column":22},"end":{"line":128,"column":1}},"15":{"start":{"line":98,"column":40},"end":{"line":98,"column":47}},"16":{"start":{"line":99,"column":44},"end":{"line":99,"column":50}},"17":{"start":{"line":100,"column":23},"end":{"line":126,"column":5}},"18":{"start":{"line":127,"column":4},"end":{"line":127,"column":22}},"19":{"start":{"line":129,"column":0},"end":{"line":129,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":36,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":38,"column":20},"end":{"line":38,"column":21}},"loc":{"start":{"line":38,"column":33},"end":{"line":95,"column":1}},"line":38},"2":{"name":"(anonymous_2)","decl":{"start":{"line":97,"column":22},"end":{"line":97,"column":23}},"loc":{"start":{"line":97,"column":35},"end":{"line":128,"column":1}},"line":97}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":2,"4":2,"5":2,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1},"f":{"0":2,"1":1,"2":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts"],"names":[],"mappings":";;;AAOO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,WAAW,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W;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n 'Passenger Names (from All Flight Legs)': fields['Passenger Names (from All Flight Legs)'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"67d6232975f9af857ea74fbfa4103b39aed7069d","contentHash":"72bb9181ec01d7afe4e8dda91b8eb39c7ea1f449f0b744dcf56089c622b67674"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":20},"end":{"line":26,"column":48}},"26":{"start":{"line":27,"column":15},"end":{"line":27,"column":38}},"27":{"start":{"line":28,"column":15},"end":{"line":28,"column":44}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":24}},"29":{"start":{"line":30,"column":0},"end":{"line":143,"column":3}},"30":{"start":{"line":31,"column":4},"end":{"line":85,"column":7}},"31":{"start":{"line":32,"column":28},"end":{"line":32,"column":74}},"32":{"start":{"line":33,"column":31},"end":{"line":33,"column":67}},"33":{"start":{"line":34,"column":8},"end":{"line":34,"column":71}},"34":{"start":{"line":35,"column":8},"end":{"line":35,"column":89}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":106}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":98}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":108}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":104}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":134}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":98}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":102}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":104}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":92}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":108}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":110}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":110}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":126}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":128}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":102}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":114}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":98}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":134}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":106}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":114}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":116}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":102}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":86}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":94}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":108}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":106}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":136}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":88}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":102}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":102}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":108}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":110}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":126}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":102}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":136}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":118}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":118}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":116}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":132}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":140}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":140}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":138}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":116}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":120}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":98}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":110}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":100}},"84":{"start":{"line":86,"column":4},"end":{"line":112,"column":7}},"85":{"start":{"line":87,"column":24},"end":{"line":87,"column":66}},"86":{"start":{"line":88,"column":27},"end":{"line":88,"column":61}},"87":{"start":{"line":89,"column":8},"end":{"line":89,"column":63}},"88":{"start":{"line":90,"column":8},"end":{"line":90,"column":81}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":78}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":80}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":110}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":106}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":100}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":86}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":106}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":102}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":84}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":88}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":94}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":102}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":92}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":108}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":124}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":130}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":120}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":116}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":96}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":110}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":100}},"110":{"start":{"line":113,"column":4},"end":{"line":142,"column":7}},"111":{"start":{"line":114,"column":30},"end":{"line":114,"column":72}},"112":{"start":{"line":115,"column":33},"end":{"line":115,"column":73}},"113":{"start":{"line":116,"column":8},"end":{"line":116,"column":75}},"114":{"start":{"line":117,"column":8},"end":{"line":117,"column":93}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":86}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":104}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":102}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":110}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":90}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":90}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":92}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":88}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":116}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":112}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":96}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":116}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":114}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":134}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":96}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":120}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":116}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":138}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":106}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":102}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":160}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":84}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":30,"column":21},"end":{"line":30,"column":22}},"loc":{"start":{"line":30,"column":27},"end":{"line":143,"column":1}},"line":30},"7":{"name":"(anonymous_7)","decl":{"start":{"line":31,"column":39},"end":{"line":31,"column":40}},"loc":{"start":{"line":31,"column":45},"end":{"line":85,"column":5}},"line":31},"8":{"name":"(anonymous_8)","decl":{"start":{"line":86,"column":42},"end":{"line":86,"column":43}},"loc":{"start":{"line":86,"column":48},"end":{"line":112,"column":5}},"line":86},"9":{"name":"(anonymous_9)","decl":{"start":{"line":113,"column":41},"end":{"line":113,"column":42}},"loc":{"start":{"line":113,"column":47},"end":{"line":142,"column":5}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":100,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1},"f":{"0":11,"1":100,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/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,CAC9B,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAC7E,gBAAgB,CAAC,wCAAwC,CAAC,CAC3D,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport { trimRequest, trimFlightLeg, trimPassenger } from '../util/trim';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields['Passenger Names (from All Flight Legs)']).to.equal(\n trimmedPassenger['Passenger Names (from All Flight Legs)']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2f340e41b1d98a2acefa4d951ba048656edc1f1a","contentHash":"e727f05145177dc1c156be1e8add59ee72c836989722728ac75f8604f512efa7"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":45,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":44,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"38":{"start":{"line":47,"column":0},"end":{"line":50,"column":3}},"39":{"start":{"line":48,"column":4},"end":{"line":48,"column":19}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":11}},"41":{"start":{"line":52,"column":0},"end":{"line":81,"column":3}},"42":{"start":{"line":53,"column":4},"end":{"line":66,"column":7}},"43":{"start":{"line":54,"column":8},"end":{"line":65,"column":11}},"44":{"start":{"line":63,"column":12},"end":{"line":63,"column":56}},"45":{"start":{"line":64,"column":12},"end":{"line":64,"column":19}},"46":{"start":{"line":67,"column":4},"end":{"line":80,"column":7}},"47":{"start":{"line":68,"column":8},"end":{"line":79,"column":11}},"48":{"start":{"line":77,"column":12},"end":{"line":77,"column":56}},"49":{"start":{"line":78,"column":12},"end":{"line":78,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":45,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":44,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":47,"column":6},"end":{"line":47,"column":7}},"loc":{"start":{"line":47,"column":14},"end":{"line":50,"column":1}},"line":47},"10":{"name":"(anonymous_10)","decl":{"start":{"line":52,"column":43},"end":{"line":52,"column":44}},"loc":{"start":{"line":52,"column":49},"end":{"line":81,"column":1}},"line":52},"11":{"name":"(anonymous_11)","decl":{"start":{"line":53,"column":56},"end":{"line":53,"column":57}},"loc":{"start":{"line":53,"column":64},"end":{"line":66,"column":5}},"line":53},"12":{"name":"(anonymous_12)","decl":{"start":{"line":62,"column":17},"end":{"line":62,"column":18}},"loc":{"start":{"line":62,"column":31},"end":{"line":65,"column":9}},"line":62},"13":{"name":"(anonymous_13)","decl":{"start":{"line":67,"column":65},"end":{"line":67,"column":66}},"loc":{"start":{"line":67,"column":73},"end":{"line":80,"column":5}},"line":67},"14":{"name":"(anonymous_14)","decl":{"start":{"line":76,"column":17},"end":{"line":76,"column":18}},"loc":{"start":{"line":76,"column":31},"end":{"line":79,"column":9}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":2,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1},"f":{"0":11,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,+CAA+C,EAAE,IAAI,CAAC,EAAE;QACzD,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,IAAI,CAAC,EAAE;QAClE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC;YACJ,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,0BAA0B;SACtC,CAAC;aACD,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(1235, () => {\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST test/bodyParameterExample', () => {\n it('should return a 200 response if a user exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Boba',\n lastName: 'Fett',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(200);\n done();\n });\n });\n\n it('should return a 400 response if a user does not exists', done => {\n chai\n .request(app)\n .post('/user/')\n .send({\n firstName: 'Test',\n lastName: 'Person',\n birthdate: '2000-12-11T19:33:38+0000',\n })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6477655d74e35648f27dccac941344bb9b5f41d1","contentHash":"f3aa2e35ff02663dbb16780500378498ac9d7eb4dcf9b5fec7eb6579908ef215"}} \ No newline at end of file diff --git a/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json b/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json deleted file mode 100644 index 9e26dfe..0000000 --- a/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json b/.nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json deleted file mode 100644 index 4b9e183..0000000 --- a/.nyc_output/processinfo/56a71d98-ad87-44f0-91b9-1b751e1490de.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":48901,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Trimming.tests.ts","src/tests/bodyParameterExample.tests.ts","src/tests/pathParameterExample.tests.ts","src/tests/queryParameterExample.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1707089021572,"ppid":48900,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/56a71d98-ad87-44f0-91b9-1b751e1490de.json","externalId":"","uuid":"56a71d98-ad87-44f0-91b9-1b751e1490de","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json b/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json deleted file mode 100644 index da8240b..0000000 --- a/.nyc_output/processinfo/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":63363,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Examples.tests.ts","src/tests/Trimming.tests.ts","src/tests/User.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1708292036041,"ppid":63362,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/bce59471-ccba-4e1e-989f-8b8c3d36b88b.json","externalId":"","uuid":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json b/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json deleted file mode 100644 index 0371685..0000000 --- a/.nyc_output/processinfo/ebdba896-7155-42e3-a822-74f2a65b3066.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","pid":63363,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/thread-stream/lib/worker.js"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1708292038300,"ppid":63362,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/ebdba896-7155-42e3-a822-74f2a65b3066.json","externalId":"","uuid":"ebdba896-7155-42e3-a822-74f2a65b3066","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json index 4519f0a..419acaa 100644 --- a/.nyc_output/processinfo/index.json +++ b/.nyc_output/processinfo/index.json @@ -1 +1 @@ -{"processes":{"bce59471-ccba-4e1e-989f-8b8c3d36b88b":{"parent":null,"children":["ebdba896-7155-42e3-a822-74f2a65b3066"]},"ebdba896-7155-42e3-a822-74f2a65b3066":{"parent":"bce59471-ccba-4e1e-989f-8b8c3d36b88b","children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":["bce59471-ccba-4e1e-989f-8b8c3d36b88b"]},"externalIds":{}} \ No newline at end of file +{"processes":{"584a34ef-7df1-43ed-82dd-905fb7a5122d":{"parent":null,"children":["6e609744-f747-4e0c-b284-9627d44db83d"]},"6e609744-f747-4e0c-b284-9627d44db83d":{"parent":"584a34ef-7df1-43ed-82dd-905fb7a5122d","children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/FlightRequest.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Passenger.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"]},"externalIds":{}} \ No newline at end of file From c68f945acbd190433e011c00499e54c99396f862 Mon Sep 17 00:00:00 2001 From: jacobjdavey Date: Sun, 18 Feb 2024 15:51:03 -0600 Subject: [PATCH 04/14] Fixed git guardian issue --- .nyc_output/processinfo/index.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .nyc_output/processinfo/index.json diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json deleted file mode 100644 index 419acaa..0000000 --- a/.nyc_output/processinfo/index.json +++ /dev/null @@ -1 +0,0 @@ -{"processes":{"584a34ef-7df1-43ed-82dd-905fb7a5122d":{"parent":null,"children":["6e609744-f747-4e0c-b284-9627d44db83d"]},"6e609744-f747-4e0c-b284-9627d44db83d":{"parent":"584a34ef-7df1-43ed-82dd-905fb7a5122d","children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Examples.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/routes.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/Passenger.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/logger.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trim.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/FlightRequest.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/User.controller.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/FlightRequest.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Passenger.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/User.tests.ts":["584a34ef-7df1-43ed-82dd-905fb7a5122d"]},"externalIds":{}} \ No newline at end of file From df557b6df42c578513feb8a98dbac14863ac65bd Mon Sep 17 00:00:00 2001 From: jacoblurie29 Date: Wed, 21 Feb 2024 17:19:12 -0600 Subject: [PATCH 05/14] Passenger interfaces updates --- src/data/test-data.ts | 28 +++++++++++++++++++ .../passenger/passenger.interface.ts | 5 ++++ .../passenger/trimmed-passenger.interface.ts | 5 ++++ src/util/trim.ts | 5 ++++ src/util/trimming/passengers.ts | 5 ++++ 5 files changed, 48 insertions(+) diff --git a/src/data/test-data.ts b/src/data/test-data.ts index bd8ba08..10a9aa2 100644 --- a/src/data/test-data.ts +++ b/src/data/test-data.ts @@ -191,6 +191,34 @@ export const createTestPassengerData = ( Created: faker.date.recent().toISOString(), 'Latest Trip': faker.date.recent().toISOString(), 'TS City, State (from Treatment Site Totals 2)': [], + 'Cell Phone': faker.phone.number(), + 'Home Phone': faker.phone.number(), + Education: faker.helpers.arrayElement([ + 'Less than high school degree', + 'High school degree or equivalent', + 'Some college, no degree', + 'Associate degree', + "Bachelor's degree", + 'Graduate or professional degree', + ]), + + 'Marital Status': faker.helpers.arrayElement([ + 'Single', + 'Married', + 'Divorced', + 'Widowed', + ]), + Employment: faker.helpers.arrayElement([ + 'Employed, working 40+ hours per week', + 'Employed, working 1-39 hours per week', + 'Unemployed, looking for work', + 'Unemployed, not looking for work', + 'Retired', + 'Student', + 'Homemaker', + 'Unable to work', + 'Other', + ]), ...manualData.fields, }, ...manualData, diff --git a/src/interfaces/passenger/passenger.interface.ts b/src/interfaces/passenger/passenger.interface.ts index 7ed2565..0d912cb 100644 --- a/src/interfaces/passenger/passenger.interface.ts +++ b/src/interfaces/passenger/passenger.interface.ts @@ -11,8 +11,13 @@ export interface PassengerData { City: string; Country: string; Email: string; + 'Cell Phone': string; + 'Home Phone': string; + Education: string; 'Household Income': number; 'Household Size': number; + 'Marital Status': string; + Employment: string; Ethnicity: string[]; 'Military Service': string; 'Military Member': string[]; diff --git a/src/interfaces/passenger/trimmed-passenger.interface.ts b/src/interfaces/passenger/trimmed-passenger.interface.ts index e5c8664..0fb89de 100644 --- a/src/interfaces/passenger/trimmed-passenger.interface.ts +++ b/src/interfaces/passenger/trimmed-passenger.interface.ts @@ -13,6 +13,11 @@ export interface TrimmedPassenger { Email: string; 'Household Income': number; 'Household Size': number; + 'Cell Phone': string; + 'Home Phone': string; + Education: string; + 'Marital Status': string; + Employment: string; Ethnicity: string[]; 'Military Service': string; 'Military Member': string[]; diff --git a/src/util/trim.ts b/src/util/trim.ts index b46b7bb..cf102dc 100644 --- a/src/util/trim.ts +++ b/src/util/trim.ts @@ -50,6 +50,11 @@ export const trimPassenger = (passenger: PassengerData): TrimmedPassenger => { fields['Passenger Names (from All Flight Legs)'], Age: Age, 'Latest Trip': fields['Latest Trip'], + 'Cell Phone': fields['Cell Phone'], + 'Home Phone': fields['Home Phone'], + Education: fields['Education'], + 'Marital Status': fields['Marital Status'], + Employment: fields['Employment'], }; return trimmedPassenger; diff --git a/src/util/trimming/passengers.ts b/src/util/trimming/passengers.ts index 02270bb..2d0d403 100644 --- a/src/util/trimming/passengers.ts +++ b/src/util/trimming/passengers.ts @@ -45,6 +45,11 @@ export const trimPassenger = (passenger: PassengerData): TrimmedPassenger => { fields['Passenger Names (from All Flight Legs)'], Age: Age, 'Latest Trip': fields['Latest Trip'], + 'Cell Phone': fields['Cell Phone'], + 'Home Phone': fields['Home Phone'], + Education: fields['Education'], + 'Marital Status': fields['Marital Status'], + Employment: fields['Employment'], }; return trimmedPassenger; From c5fa7007815af033c15d4def5d86b8c154cad456 Mon Sep 17 00:00:00 2001 From: sophiahooley Date: Wed, 21 Feb 2024 18:27:47 -0600 Subject: [PATCH 06/14] retreive passenger update info from query and make call to airtable to update --- src/controllers/Passenger.controller.ts | 52 ++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/src/controllers/Passenger.controller.ts b/src/controllers/Passenger.controller.ts index 0ff316a..8f9b69f 100644 --- a/src/controllers/Passenger.controller.ts +++ b/src/controllers/Passenger.controller.ts @@ -7,6 +7,7 @@ import type { Request, Response } from 'express'; import Airtable from 'airtable'; import dotenv from 'dotenv'; import type { FieldSet, Record } from 'airtable'; +import Joi from 'joi'; dotenv.config(); const base = new Airtable({ @@ -150,14 +151,53 @@ export const createPassenger = async (req: Request, res: Response) => { * @param res - the response object */ export const updatePassenger = async (req: Request, res: Response) => { - // get the passengerId from the query parameters - // const { passengerId } = req.query; + const { id } = req.params; + const passengerData = req.body; - // get the passenger data from the request body - // const data = req.body; + if (!id) { + return res.status(400).send({ error: 'User ID is required' }); + } + if (!passengerData) { + return res.status(400).send({ error: 'Passenger data is required' }); + } + + const schema = Joi.object({ + street: Joi.string().optional(), + city: Joi.string().optional(), + country: Joi.string().optional(), + email: Joi.string().email().optional(), + cellPhone: Joi.string().optional(), + homePhone: Joi.string().optional(), + education: Joi.string().optional(), + householdIncome: Joi.number().optional(), + householdSize: Joi.number().optional(), + maritalStatus: Joi.string().optional(), + employment: Joi.string().optional, + militaryService: Joi.string().optional(), + militaryMember: Joi.array().optional(), + }); + + const base = new Airtable({ + apiKey: process.env.AIRTABLE_API_KEY || '', + }).base('appwPsfAb6U8CV3mf'); - // validate the passenger data using Joi - // ... + try { + // make a call to AirTable to update the passenger + const response = await base('Passengers').update( + [{ id, fields: passengerData }], + async (err, records) => { + if (err) { + console.error(err); + return; + } + res.status(200).send(records); + } + ); + } catch (err: any) { + // if that fails return a 500 + console.error(err); + return res.status(500).json({ error: 'Error updating' }); + } // create a fake passenger const passenger = createTestPassengerData(); From 5fcb723cd4cdeb64dc565033b907e66add8aa7b2 Mon Sep 17 00:00:00 2001 From: mahdmohsin54 Date: Thu, 22 Feb 2024 12:46:07 -0600 Subject: [PATCH 07/14] Tests added --- src/controllers/Passenger.controller.ts | 33 ++++++++++++++++++++++++- src/tests/Passenger.tests.ts | 33 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/src/controllers/Passenger.controller.ts b/src/controllers/Passenger.controller.ts index 0ff316a..32df914 100644 --- a/src/controllers/Passenger.controller.ts +++ b/src/controllers/Passenger.controller.ts @@ -83,7 +83,38 @@ export const getAllPassengersForUser = async (req: Request, res: Response) => { * @param res - the response object */ export const getPassengerById = async (req: Request, res: Response) => { - // const { userId } = req.query; + const { userId } = req.query; + + if (!userId) { + return res.status(400).json({ error: 'Passenger ID missing' }); + } + + const base = new Airtable({ + apiKey: process.env.AIRTABLE_API_KEY || '', + }).base('appwPsfAb6U8CV3mf'); + + try { + await base('Passengers').find( + userId.toString(), + async (err: any, record: any | undefined) => { + if (err) { + logger.error(err); + return; + } else { + // remove any unnecessary data from the passenger + const trimmedPassenger = trimPassenger( + record._rawJson as unknown as PassengerData + ); + + // return the passenger + return res.send(trimmedPassenger); + } + } + ); + } catch (err: any) { + console.error(err); + return res.status(500).json({ error: 'Error fetching record' }); + } }; /** diff --git a/src/tests/Passenger.tests.ts b/src/tests/Passenger.tests.ts index fc3a1be..076e803 100644 --- a/src/tests/Passenger.tests.ts +++ b/src/tests/Passenger.tests.ts @@ -74,3 +74,36 @@ describe('GET /passenger', () => { }); }); }); + +describe('GET /passenger/:id', () => { + it('should return a 400 response', done => { + chai + .request(app) + .get('/passenger/blahblahblah') + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should return a 200 response', done => { + chai + .request(app) + .get('/passenger/recleNlsBm3dheZHy') + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should return the correct passenger', done => { + chai + .request(app) + .get('/passenger/recleNlsBm3dheZHy') + .end((err, res) => { + expect(res.body['First Name']).to.equal('Anakin'); + expect(res.body['Last Name']).to.equal('Skywalker'); + expect(res.body['Email']).to.equal('zachmcmullen04@gmail.com'); + expect(res.body['Passenger Names']).to.equal('Anakin Skywalker'); + done(); + }); + }); +}); From 4e011bfd1c06bcd1ce356d9a5ed0d62e276beb32 Mon Sep 17 00:00:00 2001 From: mahdmohsin54 Date: Thu, 22 Feb 2024 13:01:11 -0600 Subject: [PATCH 08/14] Final --- src/controllers/Passenger.controller.ts | 7 +++---- src/tests/Passenger.tests.ts | 24 ++++++++++-------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/controllers/Passenger.controller.ts b/src/controllers/Passenger.controller.ts index 32df914..ca499a2 100644 --- a/src/controllers/Passenger.controller.ts +++ b/src/controllers/Passenger.controller.ts @@ -83,7 +83,7 @@ export const getAllPassengersForUser = async (req: Request, res: Response) => { * @param res - the response object */ export const getPassengerById = async (req: Request, res: Response) => { - const { userId } = req.query; + const { id: userId } = req.params; if (!userId) { return res.status(400).json({ error: 'Passenger ID missing' }); @@ -98,8 +98,7 @@ export const getPassengerById = async (req: Request, res: Response) => { userId.toString(), async (err: any, record: any | undefined) => { if (err) { - logger.error(err); - return; + return res.status(400).send({ error: 'No passenger found' }); } else { // remove any unnecessary data from the passenger const trimmedPassenger = trimPassenger( @@ -112,7 +111,7 @@ export const getPassengerById = async (req: Request, res: Response) => { } ); } catch (err: any) { - console.error(err); + logger.error(err); return res.status(500).json({ error: 'Error fetching record' }); } }; diff --git a/src/tests/Passenger.tests.ts b/src/tests/Passenger.tests.ts index 076e803..ee4d334 100644 --- a/src/tests/Passenger.tests.ts +++ b/src/tests/Passenger.tests.ts @@ -46,7 +46,11 @@ describe('GET /passenger', () => { .get('/passenger') .query({ id: 'recleNlsBm3dheZHy' }) .end((err, res) => { - expect(res.body[0]['First Name']).to.be.oneOf(['Anakin', 'Bail']); + expect(res.body[0]['First Name']).to.be.oneOf([ + 'Anakin', + 'Bail', + 'Jefferson ', + ]); expect(res).to.have.status(200); done(); }); @@ -85,24 +89,16 @@ describe('GET /passenger/:id', () => { done(); }); }); - it('should return a 200 response', done => { - chai - .request(app) - .get('/passenger/recleNlsBm3dheZHy') - .end((err, res) => { - expect(res).to.have.status(200); - done(); - }); - }); + it('should return the correct passenger', done => { chai .request(app) - .get('/passenger/recleNlsBm3dheZHy') + .get('/passenger/rec3Wv1VViXYv3t72') .end((err, res) => { - expect(res.body['First Name']).to.equal('Anakin'); - expect(res.body['Last Name']).to.equal('Skywalker'); + expect(res).to.have.status(200); + expect(res.body['First Name'].toString()).to.equal('Anakin'); + expect(res.body['Last Name'].toString()).to.equal('Skywalker '); expect(res.body['Email']).to.equal('zachmcmullen04@gmail.com'); - expect(res.body['Passenger Names']).to.equal('Anakin Skywalker'); done(); }); }); From 6cac430c13077aba89fb29115e20af1985b5bfe5 Mon Sep 17 00:00:00 2001 From: sophiahooley Date: Fri, 23 Feb 2024 09:50:27 -0600 Subject: [PATCH 09/14] make tests for updating passenger fields --- src/controllers/FlightRequest.controller.ts | 5 +- src/controllers/Passenger.controller.ts | 45 +++++++------ src/tests/Passenger.tests.ts | 72 +++++++++++++++++++++ 3 files changed, 97 insertions(+), 25 deletions(-) diff --git a/src/controllers/FlightRequest.controller.ts b/src/controllers/FlightRequest.controller.ts index af1eecd..67776ae 100644 --- a/src/controllers/FlightRequest.controller.ts +++ b/src/controllers/FlightRequest.controller.ts @@ -1,5 +1,6 @@ /* eslint-disable no-irregular-whitespace */ import { createTestFlightLegData } from '../data/test-data'; +import logger from '../util/logger'; import Airtable from 'airtable'; import dotenv from 'dotenv'; import type { Request, Response } from 'express'; @@ -68,7 +69,7 @@ export const getFlightRequestById = async (req: Request, res: Response) => { } ); } catch (err: any) { - console.error(err); + logger.error(err); return res.status(500).json({ error: 'Error fetching record' }); } }; @@ -102,7 +103,7 @@ export const getFlightLegsById = async (req: Request, res: Response) => { return res.status(400).json({ error: 'No record found' }); } } catch (err: any) { - console.error(err); + logger.error(err); return res.status(500).json({ error: 'Error fetching record' }); } diff --git a/src/controllers/Passenger.controller.ts b/src/controllers/Passenger.controller.ts index 8f9b69f..fddd8a8 100644 --- a/src/controllers/Passenger.controller.ts +++ b/src/controllers/Passenger.controller.ts @@ -65,7 +65,7 @@ export const getAllPassengersForUser = async (req: Request, res: Response) => { ); } catch (err: any) { // if that fails return a 500 - console.error(err); + logger.error(err); return res.status(500).json({ error: 'Error fetching record' }); } }; @@ -162,32 +162,37 @@ export const updatePassenger = async (req: Request, res: Response) => { } const schema = Joi.object({ - street: Joi.string().optional(), - city: Joi.string().optional(), - country: Joi.string().optional(), - email: Joi.string().email().optional(), - cellPhone: Joi.string().optional(), - homePhone: Joi.string().optional(), - education: Joi.string().optional(), - householdIncome: Joi.number().optional(), - householdSize: Joi.number().optional(), - maritalStatus: Joi.string().optional(), - employment: Joi.string().optional, - militaryService: Joi.string().optional(), - militaryMember: Joi.array().optional(), + Street: Joi.string().optional(), + City: Joi.string().optional(), + State: Joi.string().optional(), + Country: Joi.string().optional(), + Email: Joi.string().email().optional(), + 'Cell Phone': Joi.string().optional(), + 'Home Phone': Joi.string().optional(), + Education: Joi.string().optional(), + 'Household Income': Joi.number().optional(), + 'Household Size': Joi.number().optional(), + 'Marital Status': Joi.string().optional(), + Employment: Joi.string().optional, + 'Military Service': Joi.string().optional(), + 'Military Member': Joi.array().optional(), }); + if (schema.validate(passengerData).error) { + return res.status(400).send({ error: 'Invalid passenger data' }); + } + const base = new Airtable({ apiKey: process.env.AIRTABLE_API_KEY || '', }).base('appwPsfAb6U8CV3mf'); try { // make a call to AirTable to update the passenger - const response = await base('Passengers').update( + await base('Passengers').update( [{ id, fields: passengerData }], async (err, records) => { if (err) { - console.error(err); + logger.error(err); return; } res.status(200).send(records); @@ -195,13 +200,7 @@ export const updatePassenger = async (req: Request, res: Response) => { ); } catch (err: any) { // if that fails return a 500 - console.error(err); + logger.error(err); return res.status(500).json({ error: 'Error updating' }); } - - // create a fake passenger - const passenger = createTestPassengerData(); - - // return the updated passenger - res.status(200).send(passenger); }; diff --git a/src/tests/Passenger.tests.ts b/src/tests/Passenger.tests.ts index fc3a1be..71d724f 100644 --- a/src/tests/Passenger.tests.ts +++ b/src/tests/Passenger.tests.ts @@ -73,4 +73,76 @@ describe('GET /passenger', () => { done(); }); }); + describe('PUT passenger/:id', () => { + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/junk') + .send({ id: '' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/junk') + .send({ passengerData: '' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should update street for anakin skywalker', done => { + chai + .request(app) + .put('/passenger/rec3Wv1VViXYv3t72') + .send({ Street: 'HELLOSTREET' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should update marital status for princess leia', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Marital Status': 'Married' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should update household size for princess leia', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Household Size': 3 }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Household Size': 'test' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should update email for jefferson morales', done => { + chai + .request(app) + .put('/passenger/recLFdznCJOUPEx72') + .send({ Email: 'loser@weirdo.com' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + }); }); From c644e77cdfda8780d3f1c0d7071a7ef59b9691dc Mon Sep 17 00:00:00 2001 From: neelashab Date: Fri, 23 Feb 2024 14:50:58 -0600 Subject: [PATCH 10/14] GetFlightsforUserID --- src/controllers/FlightRequest.controller.ts | 53 ++++++++++++++++++--- src/tests/FlightRequest.tests.ts | 46 ++++++++++++++++++ 2 files changed, 92 insertions(+), 7 deletions(-) diff --git a/src/controllers/FlightRequest.controller.ts b/src/controllers/FlightRequest.controller.ts index af1eecd..fcee09a 100644 --- a/src/controllers/FlightRequest.controller.ts +++ b/src/controllers/FlightRequest.controller.ts @@ -5,6 +5,10 @@ import dotenv from 'dotenv'; import type { Request, Response } from 'express'; dotenv.config(); +const base = new Airtable({ + apiKey: process.env.AIRTABLE_API_KEY || '', +}).base('appwPsfAb6U8CV3mf'); + /** * This function returns all flight requests for a given user * @@ -23,18 +27,53 @@ export const getAllFlightRequestsForUser = async ( req: Request, res: Response ) => { - // get the userId from the query parameters const { userId } = req.query; - if (userId === null) { + if (!userId) { return res.status(400).json({ error: 'Passenger ID missing' }); - } // create a fake array of flight requests + } + + try { + // query Airtable for flight requests for the user ID + const flightRequests = await base('Flight Requests (Trips)') + .select({ + filterByFormula: `{Patient AirTable Record ID} = "${userId}"`, + }) + .all(); + + if (flightRequests.length === 0) { + return res + .status(400) + .json({ error: 'No flight requests found for this user' }); + } - const flightRequests = Array.from({ length: 10 }, () => - createTestFlightLegData() - ); // return the flight requests for the user + // Retrieve flight legs for each flight request and format the data + const formattedFlightRequests = await Promise.all( + flightRequests.map(async request => { + const flightLegs = await base('Flight Legs') + .select({ + filterByFormula: `{Request AirTable Record ID} = "${request.id}"`, + }) + .all(); + + // Format the flight request data and include the corresponding flight legs + return { + id: request.id, + createdTime: request._rawJson.createdTime, + fields: request.fields, + flightLegs: flightLegs.map(leg => ({ + id: leg.id, + fields: leg.fields, + })), + }; + }) + ); - res.status(200).send(flightRequests); + return res.status(200).json(formattedFlightRequests); + } catch (error) { + console.error(error); + return res.status(500).json({ error: 'Error fetching flight requests' }); + } }; /** diff --git a/src/tests/FlightRequest.tests.ts b/src/tests/FlightRequest.tests.ts index 5942b96..5417c14 100644 --- a/src/tests/FlightRequest.tests.ts +++ b/src/tests/FlightRequest.tests.ts @@ -26,6 +26,52 @@ after(done => { done(); }); +// Test getAllFlightRequestsForUser +describe('GET /requests/', () => { + it('should return requests with the correct passenger name, flight request ID, and flight leg departure time for a given user', done => { + chai + .request(app) + .get('/requests/?userId=recV1y3bJr9eb2U5W') // Assuming userId is passed as a query parameter + .end((err, res) => { + expect(res).to.have.status(200); + const requests = res.body; + + // Assuming we're testing the first request in the array for simplicity + const firstRequest = requests[0]; + expect(firstRequest).to.have.property('id').that.is.a('string'); + expect(firstRequest) + .to.have.nested.property('fields.Patient Name') + .that.equals('Stormie Gilchrist'); + expect(firstRequest) + .to.have.nested.property('fields.Request ID') + .that.is.a('string'); + expect(firstRequest) + .to.have.nested.property('fields.Request ID') + .that.equals( + '2022-12-08 | In Progress | Gilchrist, Stormie | 2014-06-21' + ); + + // Assuming flightLegs is an array and we're testing the first flight leg for simplicity + const firstFlightLeg = firstRequest.flightLegs[0]; + expect(firstFlightLeg) + .to.have.nested.property('fields.Departure Date/Time') + .that.equals('2023-02-06'); + + done(); + }); + }); + + it('should return a 400 response for invalid or missing ID', done => { + chai + .request(app) + .get('/requests/?userId=blahblahblah') + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); +}); + // Test getFlightRequestByID describe('GET /requests', () => { it('should return the correct request ID, origin airport, destination airport, and passenger name', done => { From 7f74d3d5d691536f83ae30d9781aaa3612473def Mon Sep 17 00:00:00 2001 From: jacoblurie29 Date: Sat, 24 Feb 2024 21:22:27 -0500 Subject: [PATCH 11/14] Trimmed the data --- src/controllers/FlightRequest.controller.ts | 20 ++++++++++++-------- src/tests/FlightRequest.tests.ts | 9 +++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/controllers/FlightRequest.controller.ts b/src/controllers/FlightRequest.controller.ts index fcee09a..8b704ee 100644 --- a/src/controllers/FlightRequest.controller.ts +++ b/src/controllers/FlightRequest.controller.ts @@ -1,8 +1,11 @@ /* eslint-disable no-irregular-whitespace */ import { createTestFlightLegData } from '../data/test-data'; +import { trimFlightLeg, trimRequest } from '../util/trim'; import Airtable from 'airtable'; import dotenv from 'dotenv'; +import type { FlightLegData } from '../interfaces/legs/flight-leg.interface'; import type { Request, Response } from 'express'; +import type { FlightRequestData } from '../interfaces/requests/flight-request.interface'; dotenv.config(); const base = new Airtable({ @@ -47,9 +50,13 @@ export const getAllFlightRequestsForUser = async ( .json({ error: 'No flight requests found for this user' }); } + const trimmedFlightRequests = flightRequests.map(request => + trimRequest(request as unknown as FlightRequestData) + ); + // Retrieve flight legs for each flight request and format the data const formattedFlightRequests = await Promise.all( - flightRequests.map(async request => { + trimmedFlightRequests.map(async request => { const flightLegs = await base('Flight Legs') .select({ filterByFormula: `{Request AirTable Record ID} = "${request.id}"`, @@ -58,13 +65,10 @@ export const getAllFlightRequestsForUser = async ( // Format the flight request data and include the corresponding flight legs return { - id: request.id, - createdTime: request._rawJson.createdTime, - fields: request.fields, - flightLegs: flightLegs.map(leg => ({ - id: leg.id, - fields: leg.fields, - })), + ...request, + flightLegs: flightLegs.map(leg => + trimFlightLeg(leg as unknown as FlightLegData) + ), }; }) ); diff --git a/src/tests/FlightRequest.tests.ts b/src/tests/FlightRequest.tests.ts index 5417c14..a5eeb60 100644 --- a/src/tests/FlightRequest.tests.ts +++ b/src/tests/FlightRequest.tests.ts @@ -40,13 +40,10 @@ describe('GET /requests/', () => { const firstRequest = requests[0]; expect(firstRequest).to.have.property('id').that.is.a('string'); expect(firstRequest) - .to.have.nested.property('fields.Patient Name') - .that.equals('Stormie Gilchrist'); - expect(firstRequest) - .to.have.nested.property('fields.Request ID') + .to.have.nested.property('Request ID') .that.is.a('string'); expect(firstRequest) - .to.have.nested.property('fields.Request ID') + .to.have.nested.property('Request ID') .that.equals( '2022-12-08 | In Progress | Gilchrist, Stormie | 2014-06-21' ); @@ -54,7 +51,7 @@ describe('GET /requests/', () => { // Assuming flightLegs is an array and we're testing the first flight leg for simplicity const firstFlightLeg = firstRequest.flightLegs[0]; expect(firstFlightLeg) - .to.have.nested.property('fields.Departure Date/Time') + .to.have.nested.property('Departure Date/Time') .that.equals('2023-02-06'); done(); From 27706384bcc47826597517787f7eb4306a37649e Mon Sep 17 00:00:00 2001 From: jacoblurie29 Date: Sat, 24 Feb 2024 21:28:49 -0500 Subject: [PATCH 12/14] Fixed test structure --- src/tests/Passenger.tests.ts | 142 +++++++++++++++++------------------ 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/src/tests/Passenger.tests.ts b/src/tests/Passenger.tests.ts index 71d724f..a1b6286 100644 --- a/src/tests/Passenger.tests.ts +++ b/src/tests/Passenger.tests.ts @@ -73,76 +73,76 @@ describe('GET /passenger', () => { done(); }); }); - describe('PUT passenger/:id', () => { - it('should return a 400 response', done => { - chai - .request(app) - .put('/passenger/junk') - .send({ id: '' }) - .end((err, res) => { - expect(res).to.have.status(400); - done(); - }); - }); - it('should return a 400 response', done => { - chai - .request(app) - .put('/passenger/junk') - .send({ passengerData: '' }) - .end((err, res) => { - expect(res).to.have.status(400); - done(); - }); - }); - it('should update street for anakin skywalker', done => { - chai - .request(app) - .put('/passenger/rec3Wv1VViXYv3t72') - .send({ Street: 'HELLOSTREET' }) - .end((err, res) => { - expect(res).to.have.status(200); - done(); - }); - }); - it('should update marital status for princess leia', done => { - chai - .request(app) - .put('/passenger/recaUmd14q3YOP3Uf') - .send({ 'Marital Status': 'Married' }) - .end((err, res) => { - expect(res).to.have.status(200); - done(); - }); - }); - it('should update household size for princess leia', done => { - chai - .request(app) - .put('/passenger/recaUmd14q3YOP3Uf') - .send({ 'Household Size': 3 }) - .end((err, res) => { - expect(res).to.have.status(200); - done(); - }); - }); - it('should return a 400 response', done => { - chai - .request(app) - .put('/passenger/recaUmd14q3YOP3Uf') - .send({ 'Household Size': 'test' }) - .end((err, res) => { - expect(res).to.have.status(400); - done(); - }); - }); - it('should update email for jefferson morales', done => { - chai - .request(app) - .put('/passenger/recLFdznCJOUPEx72') - .send({ Email: 'loser@weirdo.com' }) - .end((err, res) => { - expect(res).to.have.status(200); - done(); - }); - }); +}); +describe('PUT passenger/:id', () => { + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/junk') + .send({ id: '' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/junk') + .send({ passengerData: '' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should update street for anakin skywalker', done => { + chai + .request(app) + .put('/passenger/rec3Wv1VViXYv3t72') + .send({ Street: 'HELLOSTREET' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should update marital status for princess leia', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Marital Status': 'Married' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should update household size for princess leia', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Household Size': 3 }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); + }); + it('should return a 400 response', done => { + chai + .request(app) + .put('/passenger/recaUmd14q3YOP3Uf') + .send({ 'Household Size': 'test' }) + .end((err, res) => { + expect(res).to.have.status(400); + done(); + }); + }); + it('should update email for jefferson morales', done => { + chai + .request(app) + .put('/passenger/recLFdznCJOUPEx72') + .send({ Email: 'loser@weirdo.com' }) + .end((err, res) => { + expect(res).to.have.status(200); + done(); + }); }); }); From 8ad38ed655f938ddd0b7e38a3eab1129fb85ea15 Mon Sep 17 00:00:00 2001 From: jacoblurie29 Date: Sat, 24 Feb 2024 21:43:03 -0500 Subject: [PATCH 13/14] Change route for accompanying passenger --- src/routes/routes.ts | 2 +- src/tests/Passenger.tests.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/routes.ts b/src/routes/routes.ts index 20fc663..bf00071 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -32,7 +32,7 @@ const routes = (app: Express) => { app.get('/test/retrievePassengers', retrievePassengers); /* Passenger Controller Routes */ - app.get('/passenger/', getAllPassengersForUser); + app.get('/passenger/accompanying', getAllPassengersForUser); app.get('/passenger/:id', getPassengerById); app.post('/passenger/', createPassenger); app.put('/passenger/:id', updatePassenger); diff --git a/src/tests/Passenger.tests.ts b/src/tests/Passenger.tests.ts index 2e1fc1b..56807a5 100644 --- a/src/tests/Passenger.tests.ts +++ b/src/tests/Passenger.tests.ts @@ -29,11 +29,11 @@ after(done => { // describe is group of tests // it is the actual test itself // Test case -describe('GET /passenger', () => { +describe('GET /passenger/accompanying', () => { it('should return a 400 response', done => { chai .request(app) - .get('/passenger') + .get('/passenger/accompanying') .query({ id: '' }) .end((err, res) => { expect(res).to.have.status(400); @@ -43,7 +43,7 @@ describe('GET /passenger', () => { it('should be an accompanying passenger', done => { chai .request(app) - .get('/passenger') + .get('/passenger/accompanying') .query({ id: 'recleNlsBm3dheZHy' }) .end((err, res) => { expect(res.body[0]['First Name']).to.be.oneOf([ @@ -58,7 +58,7 @@ describe('GET /passenger', () => { it('should be an accompanying passenger', done => { chai .request(app) - .get('/passenger') + .get('/passenger/accompanying') .query({ id: 'recleNlsBm3dheZHy' }) .end((err, res) => { expect(res.body[1]['Gender']).to.equal('Male'); @@ -69,7 +69,7 @@ describe('GET /passenger', () => { it('should be an accompanying passenger', done => { chai .request(app) - .get('/passenger') + .get('/passenger/accompanying') .query({ id: 'recleNlsBm3dheZHy' }) .end((err, res) => { expect(res.body[2]['Relationship']).to.be.oneOf(['Father', undefined]); From ce6454fa1f7474bfe56537eeebb6effd0d41771c Mon Sep 17 00:00:00 2001 From: charlotteconze <85513920+charlotteconze@users.noreply.github.com> Date: Sun, 24 Mar 2024 14:00:38 -0500 Subject: [PATCH 14/14] Update Passenger.controller.ts --- src/controllers/Passenger.controller.ts | 28 ++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/controllers/Passenger.controller.ts b/src/controllers/Passenger.controller.ts index 6bf5ce5..bb54c62 100644 --- a/src/controllers/Passenger.controller.ts +++ b/src/controllers/Passenger.controller.ts @@ -42,21 +42,25 @@ export const getAllPassengersForUser = async (req: Request, res: Response) => { return; } else { // get related passengers information - const accompPassengers = [] as Record
[]; - const accompanyingPassengersPromise = record._rawJson.fields[ - 'Related Accompanying Passenger(s)' - ].map(async (id: string) => { - // map through the related passengers and get the passenger information for each one - const passenger = await base('Passengers').find(id.toString()); - accompPassengers.push(passenger); - }); + const accompPassengersPromise = [] as Promise>[]; + + record._rawJson.fields['Related Accompanying Passenger(s)']?.map( + async (id: string) => { + // map through the related passengers and get the passenger information for each one + const passenger = base('Passengers').find(id.toString()); + accompPassengersPromise.push(passenger); + } + ); // Remove any unnecessary data from the passengers - await Promise.all(accompanyingPassengersPromise); - const trimmedPassengers = accompPassengers.map( - (passenger: Record
) => + const passengers = await Promise.all(accompPassengersPromise); + + console.log('HEERE', passengers); + + const trimmedPassengers = + passengers?.map((passenger: Record
) => trimPassenger(passenger._rawJson as unknown as PassengerData) - ); + ) || []; // return the passengers for the user return res.send(trimmedPassengers);